Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCAN ... ENDSCAN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00560821
Message ID:
00561304
Vues:
27
All of your suggestions will work fine, If you are wanting to scan the rest of the table. I can not think of many reason why I would scan the entire table. This is how I would code it:

select table
set order to index
seek msearch
if found()
scan while field=msearch
... do whatever
endscan
endif

this will place your pointer on the starting record and the scan will exit when the match is not longer valid.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform