Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eof() or found()
Message
De
18/12/2004 01:22:03
 
 
À
17/12/2004 13:11:00
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:
00970284
Vues:
21
<snip>
>If you do not have to use CONTINUE, then:
>SCAN it is faster, and for a single field LOOKUP() it is 100% faster
>YOU CAN CHANGE
>
>LOCATE XXXX
>IF FOUND()
>   YYYY
>ENDIF
>
>WITH
>
>SCAN XXXX
>   YYYYY
>   EXIT
>ENDSCAN
>* ATTENTION, ENDSCAN restore the SCAN workarea
>
>OR
>
>SCAN XXXX
>  EXIT
>ENSCAN
>IF !EOF()
> YYYY
>ENDIF
>
>or for a single field
>
>IF LOOKUP() AND !EOF()
>  YYYY
>ENDIF
>
Hi Fabio. Any idea why there would be this difference in speed between these methods?

Ciao!
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform