General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only