Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String Conversion
Message
De
06/08/2007 22:49:46
 
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 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01245922
Message ID:
01246373
Vues:
28
>>And my excuse is: Bad habit. Thanks for pointing out the better function!
>>
>
>I know how difficult is to say NO to old habits (especially bad ones) :-)
>I still put GO TOP before SCAN :-)

I always use the GO TOP. If the table is on a second scan and you are not using a FOR clause, it will not scan the table.
SCAN
  <DO SOMETHING 1>
ENDSCAN

<MORE CODE>

SELECT csrTable
SCAN
  <DO SOMETHING 2>
ENDSCAN
Without a GO TOP, the DO SOMETHING 2 would never happen!
Carsten M. Thode
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform