Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locate to record and replacement very slow
Message
From
02/06/2004 12:10:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/06/2004 12:06:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00909275
Message ID:
00909293
Views:
10
>>thnaks you.it is working faster than my codes. Buy i am unable to understand . I am using both commands for one work.
>>1.set filter to&&
>>2.do while .not. eof()
>>But the scan command is work for both work. Please explain me.
>>thanks
>
>SCAN FOR (condition)
>
>will process all records that fulfill the condition. That is, you don't need a filter. Also, you don't need a SKIP - that is implicit in the ENDSCAN.

However, the fact that it uses Rushmore Optimization doesn't necessarily mean that it is the fastest option. In my experience, the following should be faster:
lnValue = ...
set order to "KeyField"
scan while KeyField = lnValue
  * Do something here, with each record
endscan
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform