this is very similar to a problem i encountered before with a formulafill statement.
i have a proc that puts a fieldname in a variable named fld.
later there’s an arrayselectedbuild statement using that variable:
arrayselectedbuild values, ¶, ‘’, datavalue(fld)
this doesn’t work. you get any array with all the elements being the fieldname.
i tried this because this is the trick that makes formulafill with a fieldname in a variable work:
arrayselectedbuild values, ¶, ‘’, datavalue(’’ + fld)
this produces an array with all the elements being the value of the field in the current record.
so, i need a new trick.