Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCAN ... ENDSCAN
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00560821
Message ID:
00561304
Views:
26
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform