Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution
Message
De
17/12/1999 16:29:58
 
 
À
17/12/1999 16:18:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00305094
Message ID:
00305484
Vues:
20
>>Hi Erik,
>>
>>>cFieldName = "CodeList.Code" + xCode
>>>uValue = EVAL(cFieldName)
>>
>>And with an eval() you don't need to define the variable, unlike macro expansion:
>>
>>uValue = EVAL("CodeList.Code" + xCode)
>
>Mike, while I like EVAL() as a much better solution, what's wrong with:
>
>uValue = CodeList.Code&xCode

Anyway isn't it clearer to use EVAL than macro expansion. And the doc says that EVAL is faster...
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform