Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding Standards
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00115272
Message ID:
00115305
Views:
18
>The use of the EXIT and LOOP keywords is prohibitted. I think that these are the xBase equivalent of GOTO.

Hi George - I haven't found another way to get out of a huge FOR loop for certain mathematical searches. I don't possibly want to run the entire loop if a condition fails, for example:
FOR ncount = 1 to 2**20
...  some code
if some condition fails
   EXIT
endif
ENDFOR
I know you can use WHILE with condition instead, but FOR is supposed to be faster, and I need speed for this stuff. Any alternatives?

Also, I noticed at last Devcon not all were using 'l' prefix for locals any longer. Since there are, in theory, now only properties, parameters, and local vars, do we really still need the 'l' for local? Or is this heresy? :)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform