Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Pointers
Message
From
23/02/2001 17:12:24
 
 
To
23/02/2001 11:18:15
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00478679
Message ID:
00479086
Views:
39
Hi Spencer,

Not so sure that that is true... here's an excerpt from "Hacker's Guide to Visual FoxPro 6.0":

"What about performance? We often see people going to great lengths to eliminate macros from their code. But the truth is that, in certain cases, macros are actually faster than EVAL(). Here are some guidelines:

Always use indirect reference rather than EVAL() or a macro. If FoxPro expects a name, indirect reference is the right choice.

In a command that will be executed repeatedly, it's generally better to use a macro than EVAL(). The macro is expanded once and substituted into the command while an EVAL() expression is evaluated each time the command executes.".

Cheers,

JimN


>Hi,
>
>Evaluate() is significantly more effecient than the & macro. As you get comfortable with evaluate() you'll want to consider using in place of a & macro whenever possible.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform