Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of macro substitution vs. string valued variables
Message
De
22/07/1999 11:01:35
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgie, États-Unis
 
 
À
22/07/1999 00:03:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00244254
Message ID:
00244734
Vues:
21
>[thourough anwser to original question snipped]
>
>Thanks. This is exactly what I was looking for.
>
>I had a feeling VFP was an interpreter and just knowing that helps my "feel" for how macro expansion will behave.
>
>I have seen the speed argument used before regarding the choice between macro or name expression, though with modern computers I cannot imagine it makes much difference unless the situation calls for high speed repetition of the command containing the macro or name expression.
>
>Is a macro that occurs in a command that is within the bounds of a DO or FOR loop (but not in the DO or FOR command itself) reexpanded in each loop cycle in which the command executes?

Yes, macros that occur in lines of code within a loop are expanded.

And, you are right of course, unless you are in a loop processing a bunch of macros you won't notice the difference in processing time. I must confess, though, when it comes to FoxPro, I am a speed nut and am always looking for the quickest way to do something (without compromising quality). I have a sign in my office that reads "Any perceivable wait is too long!"
David.
David.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform