Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locate??
Message
From
17/03/1998 13:39:39
 
 
To
17/03/1998 12:54:43
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00084986
Message ID:
00085135
Views:
48
>Hi Edward,
>
>In the code you supplied, you first did a SEEK to find the first occurence of the needed record(s), then the LOCATE with the WHILE clause. Would adding the REST clause make any difference in speed? I'm not trying to pick here, I just don't know. That is, does the LOCATE have to go back and start from BOF even though you did a SEEK to the first occurence? If so, would adding the REST clause cause it to start where the current record pointer is and save some time?

Hi Bill,
If pointer would go back then WHILE expr would be evaluated to .F. immediately and these two commands would provide even different results. I mean that adding REST you hurt nothing and get nothing.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform