EVAL() is pretty brief.
Consider standardizing the alias, for example,
USE (aliasstr) alias TARGET AGAIN IN 0
Now, the report can refer to Target.fieldname with no need to wrap it in a function.
Of course, the actual problem you're trying to solve might be more complex. Please share.
On Thu, Apr 20, 2017 at 6:14 PM, Gene Wirchenko genew@telus.net wrote:
Hello:
Suppose I wish to refer to a column. I have the alias in *text* form.What is the best way to access the column? By best, I mean a short, clear way that:
- can be used in both reads or writes on the column and
- is in-line: I do not want to have to define a variable with an
expression and then use that in a later line.
I have the rather ugly evaluate(aliasasstr+".colname")which I have used for years on occasion. Now, I am modifying a report where I will have to use this sort of access more than a few times.
Am I overlooking something cleaner?Sincerely,
Gene Wirchenko
[excessive quoting removed by server]