Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eof() or found()
Message
De
17/12/2004 11:43:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
00970039
Message ID:
00970085
Vues:
16
>hi all,
>i know that its not the most important thing in the world but i was wondering what was the better/faster code to use when searching a table using a locate command (no index for seek), if eof() OR if found().
>Slán
>~M



I too use FOUND() after a LOCATE, for readability/self documentation.

I use EOF() when I'm actually looking for it (e.g. I have a prg that processes a file and deletes records that do not pass muster in a complex validation routine. After returning from the routine I check EOF() for the unlikely case where ALL records did not validate properly).


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform