In Panorama X, that "Just Works™"
It can be done in Panorama 6 also, but I've forgotten the details
I don't understand what this means?
I guess Mark understood it though. However, I still don't.
I do? Who remembers?
Ok, I looked at the code. It appears that in Panorama 6 it is looking at TESO, Popup Menu, Data Buttons, Sticky Push Buttons, and Text Lists. In Panorama X it should work with any type of object that references a field name. And my comments earlier about AI were wrong -- it should work if the prefix is
d. (Maybe Robert's suggestion is that somehow other prefix values should be allowed? If so, it looks like the
writedialogcode statement in Panorama X does allow this, though I don't think the Dialog Workshop UI supports this currently. I still don't know what "types of objects" refers to in this sentence. There's just one prefix, no matter what the object type is.)
Circling back, I don't think I really understood your (Mark's) original question, and I didn't really remember how this feature worked, either. There is definitely a bug in the Panorama 6 version, and it should have generated the
Variable: items for you, as you thought originally. In fact, I see that it is documented that it will do that, on page 502 of Formulas & Programming. That's probably how you knew about it
The code for
writedialogcode is open source, and I was hoping that maybe I could give you a source level patch you could apply yourself, but it looks like the bug is in a low level function, not in the source you have access to. So I don't think this will ever work in Panorama 6.
For the future, the good news is that I have verified that Panorama X does NOT have this bug, it correctly generates the
Variable: item for a pop-up menu.