Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'SCAN FOR' vs 'LOCATE FOR'
Message
From
09/12/1999 20:43:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00301450
Message ID:
00301456
Views:
32
>Hi everyone
>
>I've been using the 'SCAN FOR' command and the 'LOCATE FOR' command in some of my applications. In terms of speed - does anyone know which is supposed to be faster? They appear to work about the same speed to me...
>
>Regards
>
>Chris Kable
>FuelTrac

Both commands are Rushmore optimizable so time could be really the same. The difference is in result. LOCATE goes to particular record and SCAN goes through each record. If you compare LOCATE+CONTINUE against SCAN then probably SCAN would be faster, but difference is probably negligible.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform