If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Help! Sequential File Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-03, 08:09
coolowen coolowen is offline
Registered User
 
Join Date: Jan 2003
Posts: 56
Unhappy Help! Sequential File Access

Hi all,

I am working with a VB application which sends and retrieves data from a textfile - when I lookup a record to return to the VB form, I get a 'Input Past End of File (Error 62)' message?

Can anyone tell me how I am messing up? I know it is something really simple, but I do not work with VB that much, so any suggestions would be appreciated!

Thanks,

C.
Reply With Quote
  #2 (permalink)  
Old 04-02-03, 02:48
g_srinivas g_srinivas is offline
Registered User
 
Join Date: Mar 2003
Posts: 12
Re: Help! Sequential File Access

Hi,

Hope the below URL is of some help.

http://support.microsoft.com/default.aspx?scid=KB;en-us;q142246

Here is a possible solution - Use the EOF function immediately before the Input # statement to detect the end of file.

Ex:

Do while not EOF(file#)
Line Input #1, ...
.
.
.
Loop
Close #1

Hope that helps.

If it still doesn't work, please provide the code and let's try to sort it out.

Srini.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On