Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shutting Down the Computer
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00532885
Message ID:
00533226
Vues:
9
>>And don't define CR, use local variable instead... Learned recently this from George Tasker...
>
>Nadya,
>I think you're taking George's post out of context. IIRC, George posted that you should use a local variable when dealing with loop conditions. You should assign a local variable the value of the constant and then use it in your tight loop. That way, VFP doesn't continyually have to reevaluate the CHR() function.
>
>You don't need to do it when you aren't running through loops or the number of interations is relatively small.
>
>Just my $0.02.

Thanks, this is what I gather too. Anyway, I use local varialbe instead of #define from now on for this particular constant :)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform