Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mystery EOF error
Message
 
To
14/08/2002 11:22:11
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00689584
Message ID:
00689646
Views:
18
Did you run the debugger and check to see if it isn't EOF()??

also did you try and copy the table from the PC with VFP to the PC with the error?


>>Hello Dave
>>
>>sorry if you know, do you know what EOF means??
>>
>>it means your record pointer (active record in table) is at the End Of File the last record in the table which isn't really a record at all and can not store data it's like a footer
>
>the final record is filled with data from the array laHolder.
>The code runs error free on my machine. No EOF errors occur.
>
>The record pointing to the final record in the table is NOT the same situation as the record pointer pointing to the EOF marker of the table.
>
>>
>>try resetting the record pointer, also set step on and in the debugger watch window type "eof()" and see what it says
>>
>>m = reccount()
>>append blank
>>goto m+1
>
>I want to avoid changing any code if necessary because the current code/app works error free on many machines.
>>
>>also if this table has no records in it, try adding a blank record then running your code (sometimes the append general doesn't work if the table has no records)
>>
>>
>>Hope this helps ya
>>
>>
>>
>>
>>
>>>on a machine whose VFP environment settings i do not currently have access to
>>>an EOF error (error 4)occurs during the following sequence of commands
>>>
>>>APPEND FROM ARRAY laHolder FIELDS Mattnum, LineNo, TicketNo
>>>GATHER MEMVAR FIELDS Lot_Id,DrawDate
>>>
>>>during debugging i discovered laHolder is a one dimensional array of length three. Containing correct values.
>>>
>>>During the second line of code an EOF error (error 4) occurs.
>>>I thought the record pointer would be at the final record in the table, Thus, making an EOF error impossible.
>>>
>>>On my development machine an EOF error DOES NOT occur.
>>>In a worst case scenario I am going to debug the VFP Application ON the machine generating this error. But, I do not wish to do so.
>>>
>>>Any idea if any VFP environment settings can cause this kind of error to occur ?
>>>
>>>We are running VFP 5.0a (SR3)
>>>
>>>Any other ideas?
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform