MrFancyteeth
Programmer
I've been using macro substitution for a while, but just found the evaluate() function in Visfox help.
quote:"Whenever possible, use EVALUATE( ) or a name expression to replace macro substitution using &. EVALUATE and name expressions execute faster than macro substitution."
However i've tried using it and it produced errors.
i would normally write something like:
csql="*"
SELECT &csQl FROM table1
which works but,
csql="*"
SELECT evaluate(csQl) FROM table1
doesn't work.
any ideas?
MrF
quote:"Whenever possible, use EVALUATE( ) or a name expression to replace macro substitution using &. EVALUATE and name expressions execute faster than macro substitution."
However i've tried using it and it produced errors.
i would normally write something like:
csql="*"
SELECT &csQl FROM table1
which works but,
csql="*"
SELECT evaluate(csQl) FROM table1
doesn't work.
any ideas?
MrF