Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Pointers
Message
De
24/02/2001 08:06:01
 
 
À
23/02/2001 17:12:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00478679
Message ID:
00479195
Vues:
37
Hi Jim,

What do you mean by "indirect reference"?

THanks

>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform