Tracy,
The only way macro substitution would work in your code if you've something like
getfield = "somevar"
somevar = "prof_sc"
? getfield, &getfield
The 'somevar' could be memory variable or table field.
>Hi Sergey,
>
>This is strange, in my small tests, if getfield = "prof_sc" then WORDHIDE(EVALUATE('getfield')) would pass the value 'prof_sc' to the wordhide function.
>
>However, in my app, it bombed--it passes 'getfield.'
>
>Also in my tests, running WORDHIDE(&getfield) failed, but it works in my app. I have checked SET UDFPARMS. Very strange. For now, I am sticking with what works til I can determine why it works sometimes and sometimes not.
>
>It appears to work in my FPD26 app as well using WORDHIDE(&getfield) while it would not work in my tests in either version. I must have UDFPARMS set differently somehow I guess?
>
>What I cannot understand is why WORDHIDE(&getfield), which was my original attempt, started working?
>
>Hmmmmmmmmmm
>
>Thanks,
--sb--