Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding Standards
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00115272
Message ID:
00115305
Vues:
17
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform