Control name in ValDsiplay

Hi i have been trying to understand if is it possible to set a "variable ctrlName" in the valdisplay.
for example, i tried the following, but it does not work and overwrites my previous definitions of the control.


function (ctrlname)
String ctrlname
ValDisplay [/Z] ctrlName [ keyword = value [, keyword = value ...] ]
end

thanks
I may have misunderstood your question, but I think using $ctrlName is what you need.

ValDisplay [/Z] $ctrlName [ keyword = value [, keyword = value ...] ]

Hope this helps,
Kurt