Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is SEEK faster than GOTO?
Message
De
07/06/2004 18:28:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00910871
Message ID:
00910949
Vues:
22
>I have a function that needs to move around a dbf and then return to the record where the call was made. Should I seek my way back or is a GOTO okay?
>Thanks

Consider the following. For a SEEK, VFP must first find out the correct record number, by analyzing the index, and then, internally, do the equivalent of GOTO record-number.

However, since SEEK is fairly quick, too, I would mainly base my decision on the convenience. For the purpose of going back to a particular record, GOTO may win too, since you don't need to SET ORDER to a particular index first.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform