Writing record: –

Writing record: - In the random-access file, a full record write into file instead of particular variable. Put statement is used to write a record into random access file. Syntax of the put statement is –                 Put <File Number> [,Record Number] <,Variable Name> Where file number is the number of a file that has... Continue Reading →

Advertisements

Random access file: –

Random access file: - Random access file provide an efficient way of storing and retrieving data in a such a way that records must be modify selectively. Sequential file may only we processed in sequential order. Processing begins at the first record and continues in sequence in the last record, unless the process is halted... Continue Reading →

77) An example of common dialog control?

An example of common dialog control. Before using common dialog control on the form, place a TextBox on the form and change its name to TextMessage. Insert three menus such as file menu, format menu and colors menu using menu editor dialog box. In the file menu, add three commands such as open, save as... Continue Reading →

76) Design a form and write program in visual basic for a random-access file. The random-access file name and balance. Name of this random file is customer.dat. After input records in random access file, enter customer type, customer number, name and amount from keyboard. Customer number is record number and customer type is either 1 or 2. If customer type is 1, add the amount in his balance and if customer type 2 subtract the amount from his balance?

Private Type Record     EName As String * 20     Balance As String * 5 End Type Private Sub Command1_Click()     Dim Employee As Record, CName, Check As String     Dim Amount, CT, CN, RecNo As Integer     Open "Customer.dat" For Random As #1 Len = Len(Employee)     Check = "Y"     RecNo = 0... Continue Reading →

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: