Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Who'd have thought....
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00285125
Message ID:
00285400
Views:
20
>This FOR loop would fire???
>
>FOR i = 0 TO 0
> WAIT WIND ALLT(STR(i))
>ENDFOR
>
>
>
>Wayne

Wayne,

This si "by design". A FOR loop always fires at least once. The evaluation of the ending value is on the ENDFOR line and VFP must run the loop at least once to get to that line. Use a DO WHIULE loop if you need it to be otherwise.
Previous
Reply
Map
View

Click here to load this message in the networking platform