Advertisement
Advertisement
| 07.17.2008 at 07:31AM PDT, ID: 23573311 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: |
Dim lessons As Lessons1
FileClose(1) 'closes file if already open to stop error
FileOpen(1, "Lessons.dat", OpenMode.Random, , , Len(lessons))
Dim Records As Short
Records = LOF(1) / Len(lessons)
MessageBox.Show(LOF(1))
MessageBox.Show(Records)
-----------------------------------------------------
Module Lessons
Structure Lessons1
Dim DaysSince As Short
Dim Slot As Short
Dim PersonCode As Short
<VBFixedString(30)> Dim FirstLine As String
<VBFixedString(20)> Dim Town As String
<VBFixedString(9)> Dim Postcode As String
'total length of 65 bytes
End Structure
End Module
|