Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New GOTO trick?
Message
 
À
15/03/2002 09:45:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00631774
Message ID:
00633383
Vues:
29
>>>Chris,
>>>
>>>I would use LOCATE FOR RECNO() = Value if I ever needed to position on a certain record by RECNO(). However, I don't use RECNO() to find records I use the PK value instead.
>>
>>So that's 3 different ways of getting to the same place
>>
>>Locate RECORD lnRecord
>>Locate for Recno() = lnRecord
>>GoTo lnRecord
>>
>>Is there a best one or is it just preference (I'm using this code to ensure that any table is on the correct record after something that might move the record pointer has finished so a primary key is not an option).
>
>locate for recno() = lnRecord will surely be slow, unless you happen to have an index on recno().
>
>Hilmar.

Thanks Hilmar, any thought on which of the other 2 should be the fastest?
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform