Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'SCAN FOR' vs 'LOCATE FOR'
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00301450
Message ID:
00301461
Vues:
28
>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...
>

SCAN FOR processes records in the current sort order, identifying eligible records based on the FOR condition. LOCATE positions to the first record meeting the specified FOR condition. If the FOR condition is Rushmore optimizable, the eligible records can be established on either; if not, the records are examined from the logical BOF a record at a time in the current sort order. So they both perform in a similar fashion - the biggest difference is I'm not sure if CONTINUE has to repeat the check for eligible records.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform