getfield='prof_sc'
value1 = WORDHIDE(getfield)
?value1
>I want to dynamically send the value from a field to a function where the fieldname may change depending on different conditions. For instance, if the table is al3dict.dbf and the field value I want to pass is al3dict.prof_sc which contains the character string mdr_dob, I try:>*Original Code Works Correctly >value1=WORDHIDE('prof_sc') >?value1 && returns 'mdr_dob' which is value in prof_sc field in table > >*New code using macro substitution does not work, why? >getfield='prof_sc' >value1 = WORDHIDE(&getfield) >?value1 >>