Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Attn JimB - FoxTalk Speed Article (11/98)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00157650
Message ID:
00157679
Vues:
17
>Hi Jim -
>
>Just read your article in Nov FoxTalk, and I have a question about the 'Name expression instead of macros' portion.
>
>You say that EVALUATE(lcFieldName) is faster than &lcFieldName.
>
>Is there any cases when it is desirable (or that it's required) to use the macro, or is that something I really should _never_ be using anymore?
>
>Thanks for the great article!
> ellen

Ellen,

Yes there are situations where only a macro will work. Anything that has a command in the character string must be macro'd. For example;

lcCommand = "SEEK lcVariable"
&lcCommand

Named expressions can ONLY be used where VFP is expecting the name of something,like a field name or a file name.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform