Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleted records problem, Again!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00049672
Message ID:
00049939
Vues:
57
>>>John, if you re-set the record pointer (GO TOP, etc.) after the SET DELETED command it will take effect in the INIT as well.
>>>
>>>Barbara
>>Barbara,
>>
>>Actually LOCATE is faster than GO TOP in certain situations. It is because LOCATE is optimizable while GO TOP and GO BOTTOM are not.
>
>Jim,
>Do you mean you can use LOCATE without specifying a FOR condition? If so, where would the record pointer be after you issue LOCATE? At top, where it was? Just curious about this "new" feature.
>
>John.
John,

This new feature has been around since FP 2.0 got Rushmore.

LOCATE

will move the pointer to the first record in the table that is valid for the current filter, with no filter this would be the first record, with a filter it would be the first record that meets the filter criteria. The advantage of using LOCATE over GO TOP, is that GO TOP goes to the very first record and then starts skipping until it hits a valid record, while LOCATE lets Rushmore figure out which record to go to.

If it make you mroe comfortable you could use

LOCATE FOR .T.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform