starting a random access file
starting a random access file
(OP)
I want to start a Random access file for visual basic....but I dont know how to...
"I neva apologize 4 sayin what I feel, that would b like apologizing for being real"
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
starting a random access file
|
RE: starting a random access file
CODE
ID As Integer
Name As String * 20
End Type
Dim MyRecord As Record
Dim MyFile as Long ' Declare variables.
MyFile = Freefile 'get available file handle
Open "TESTFILE" For Random As MyFile Len = Len(MyRecord)
' Close before reopening in another mode.
Close MyFile
Courtesy of VBHelp
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
UK steam enthusiasts: www.essexsteam.co.uk