Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EVALUATE and macro substitution alternatives
Message
From
28/06/2000 14:07:34
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00385373
Message ID:
00385949
Views:
9
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform