Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOR EACH vs FOR NEXT
Message
 
To
18/07/1999 15:37:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00242791
Message ID:
00242899
Views:
23
>Hi Jim,
>
>>No you are incorrect. FOR EACH is intended for working through a collection of objects, while FOR/ENDFOR is for looping with a fixed number of iterations.
>
>FOR EACH can be used on any array and not just for controls, right? I'm a way from a VFP system right now.

Yes, but its purpose is to work through a collection of objects. That doesn't mean you can't use for other things as well, just that that is the design goal for the construct.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform