Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCAN REST FOR Question....
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00807548
Message ID:
00807580
Views:
18
Thanks for the info...

Tommy


>>In looking at code at my new job, I came across the following construct.....
>>
>>SEEK avalue
>>SCAN REST FOR thistable.fieldvalue = avalue
>>
>>dahdahdah....
>>
>>ENDSCAN
>>
>>Question....
>>
>>Will the SCAN begin where the REST starts... or will it start over at the beginning of the table because of the FOR?? (A speed concern here.....)....
>>
>>Thanks
>>
>>Tommy
>
>It will start scanning at the current record. The for default is ALL but you changed it to REST. The only difference really between this and the WHILE statement is that this will always leave you at EOF while the WHILE clause will end at EOF or the next record that doesn't match.
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform