Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New GOTO trick?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00631774
Message ID:
00633559
Vues:
39
>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).


The PK is an option, instead of saving the recno() save the PK value. Then instead of GOTO lnRecno you Locate for PK = PkSaveVar.

The reason that this is important is that once you move from Fox data the concept of recno goes away (or at least it becomes a problem).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform