Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scan versus Scan While Not EOF()
Message
 
 
To
02/12/2000 18:15:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00448536
Message ID:
00448538
Views:
8
>I've seen a number of posts here about adding a WHILE NOT EOF() condition to a SCAN..ENDSCAN loop. I get the impression that this seems to make the loop process more quickly.
>
>I've always thought the WHILE NOT EOF() was redundant.
>
>Could someone please explain to me how including it speeds up the processing?
>
>Thanks.............Rich

Adding the WHILE clause makes the SCAN/ENDSCAN not reset the record pointer to the first record. If you want to process from the middle of a table to the end, use WHILE.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform