Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of macro substitution vs. string valued variables
Message
From
22/07/1999 11:01:35
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgia, United States
 
 
To
22/07/1999 00:03:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244254
Message ID:
00244734
Views:
19
>[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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform