Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EVALUATE and macro substitution alternatives
Message
De
28/06/2000 14:07:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00385373
Message ID:
00385949
Vues:
11
>replace (fldname) with evaluate(replfldname)
>replace &fldname. with &replfldname.
>What would be more efficient?

The () is faster in this case, its also safer in situations (like COPY FILE) where there may be a space in the variable's value. The Named Expression would work, but the Macro would throw an error. I don't know if it applies to REPLACE, I've never tried it using the long field name of a database field.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform