Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SKIP and EOF()
Message
From
13/05/2004 08:49:37
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00903423
Message ID:
00903532
Views:
27
The purpose of the code was to move through records in a table but keeping track of sets of records. In a set the first record was treated differently than the rest in that replaces were done to that one. There was the SCAN, a couple DO WHILE loops and some skipping backwards/forwards to be on the right record at the right time. I was able to have this work by not using SCAN and using DO WHILE !EOF() instead. The implicit SKIP in the SCAN was throwing it off where having control of the SKIP in the overall DO WHILE seemed to do the trick. At this point I'm still not sure why it was giving me an error on the record pointer, but it works.

Thanks to all...

>Jay,
>
>Can you explain what you're trying to do? Why do you need DO WHILE?
>
>>Ok, this is Foxpro 101, but if I'm in a SCAN and I issue the SKIP command is there another way other than putting in a conditional IF to check for EOF at every SKIP? I have FOR !EOF() on a DO WHILE, but after the ENDWHILE I do a SKIP and it barks at me when I hit the EOF. The quickest answer gets the prize as I'm trying to go home and I can't until I get through this scan logic...
>>
>>Update: I'm even having a hard time getting the IF logic to capture the EOF condition. It keeps barking...
>>
>>Another update: I'm in a TRY - will that make a difference?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform