Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GO to a negative recno in a optimistic table buffered cu
Message
De
12/07/2005 19:03:07
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
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01031593
Message ID:
01031974
Vues:
11
>Hi Hilmar,
>
>>Are you using the LOCATE command? Perhaps you should use the GOTO command;
>
>I prefer the LOCATE RECORD command, since it is as fast as the GOTO command. Additionally, it accepts the record number of the phantom record at EOF(), whereas GOTO raises an error in this case:
>
>Create Cursor curTest (nField I)
>Goto 1
>Locate RECORD 1
>
Quite interesting. That could save several lines of conditional code. Vielen Dank.
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