Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scan...EndScan still a problem?
Message
From
05/12/2001 18:42:26
 
 
To
04/12/2001 16:47:41
Stan Vaninger
Mitek Industries, Inc
Missouri, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00589532
Message ID:
00590267
Views:
30
>I remember reading several years ago that Scan...EndScan loops should not be nested because some records do not get processed properly. Is this still the case in VFP7?
>
>Thanks very much.
>Stan

You only need to be careful if you have a FOR condition which is optimisable AND you are changing key values within the loop. No problem with nesting, except if you are scanning the same table, in which case store the pointer.
SELECT TableA
SCAN
do something
nRec= RECNO()
SCAN
do somethingelse
ENDSCAN && TableA
GO m.nRec
ENDSCAN && TableA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform