Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eof() or found()
Message
De
20/12/2004 03:16:42
 
 
À
19/12/2004 21:08:03
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:
00970504
Vues:
14
>>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
>
>FOUND(). Not only because of what others have said, but also because if the locate command is changed to include a "while", eof() will be inaccurate.
>
seek x
>locate for y while x
>if found()  && eof() might fail here!
>endif
Another case:
...
replace f1 with 2
LOCATE NEXT 1 FOR f1=1
* EOF(),FOUND() return .F.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform