75) Design a form and write a program in visual basic for a random-access file. Input some record in the file. Record contains name and total marks and name of this random file is marks.dat. After appending record in the file, add 10 marks in any one record in that file by calling it using get statement?

Private Type Student     SName As String * 20     TM As String * 3 End Type Private Sub Command1_Click()     Dim MyRec As Student, Check As String, RecNo, SearchNo As Integer     Open "Marks.dat" For Random Access Read Write As #1 Len = Len(MyRec)     RecNo = 0     Check = "Y"     Do... Continue Reading →

Advertisements

74) An example of random access file

Private Type RecordType     SName As String * 20     Tm As String * 3 End Type Private Sub Command1_Click()     Dim MyRec As RecordType, Check As String, RecNo, SearchNo As Integer     Open "Marks.dat" For Random As #1 Len = Len(MyRec)     RecNo = 1     Check = "Y"     Do While Check =... Continue Reading →

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: