|
-
Nov 7th, 2000, 01:19 PM
#1
Thread Starter
New Member
I am writing a program that makes use of a random mode file to store equipment numbers. When executed on an NT or 2000 machine it works great. When executed on a 98 machine it works fine when the file is first initialized, but everytime after that give an error "bad record length".
The file has about 600 records and stops on record 50 when the error is given.
This is how I open the file:
Open "c:\temp\data.ran" For Random As #1
This is how I close it:
Close #1
The program has to be demonstrated on a 98 machine, so I would like to find a fix. Can anyone help?
-
Nov 7th, 2000, 01:41 PM
#2
Hyperactive Member
You need to declare the length of the records
eg. Open "c:\temp\data.ran" For Random As #1 Len = 20
-
Nov 7th, 2000, 01:52 PM
#3
Thread Starter
New Member
Tried that. If not specified, VB assumes 256. Thanks though.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|