Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SKIP and EOF()
Message
 
 
To
12/05/2004 18:44:23
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00903423
Message ID:
00903451
Views:
19
Jay,

You realize that a skip is going to make you only process every other row... also the code below does not throw any errors
create cursor x1 ( i1 i )

for i = 1 to 10
   insert into x1 values ( i )
endfor

scan
   ? x1.i1
   skip
endscan
>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform