Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scan versus Scan While Not EOF()
Message
From
02/12/2000 19:34:47
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00448536
Message ID:
00448546
Views:
13
>>>>>>>>>>>>>
Adding the WHILE clause makes the SCAN/ENDSCAN not reset the record pointer to the first record.
>>>>>>>>>>>>>

Doesn't SCAN FOR also start at whatever record as SCAN WHILE do?

As opposed to SCAN that starts at the top record (with whatever controlling index tag you may have in effect).


>>>>>>>>>>>>>
If you want to process from the middle of a table to the end, use WHILE.
>>>>>>>>>>>>>
Clarification here: 'to the end' in the case of the poster that used WHILE !EOF()
Actually it is until WHILE condition stops being true.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform