>>>>I prefer not to use macro substitution unless it's necessary and it's not necessary in this case.
>>
>>>I understand why try not to use macro substitution, but why are you saying it is not necessary in this case?
>>
>>You said yourself that EVALUATE(cAlias + [.] + cField) does the job.
>
>I think I misunderstand you.
>I suppose the use EVALUATE() should also be the "only when necessary" case :)
And sometimes it can be avoided too. I'd rather build a script on the fly, textmerging actual field names, and then execscript() it. Unless there are some limitations - few things may be out of scope in such a script - in which case I'd build a class from a generated prg, instantiate it and run its code. This technique saved me a lot of unnecessary conditional code - in one particular case, I managed to get rid of about 40,000 if-endif statements (plus the code between them which would never run), because I could check for them beforehand, and build the code on the fly which simply wouldn't include them at all. Speed gain, about 40x.