Likely a bit slow tonight, but need to assign a reference to the variable of an OPTION control. Something like: LongRef &= ?OPTION{PROP:???}
Was GPF reminded that PROP:Use here returns the contents.
You can assign a referenced reference at run-time via PROP:Use. Don’t try to use a reference in the window definition.
If you can do that, it’s a lot safer than trying to get to the use variable of the control itself.
If you know the data type, you can use something like this example attached to this message How can you dynamically disable fields on a form at runtime? - #5 by jslarve That will get you the address. If you know the data type, you can assign a reference to it.
Well that code helps me feel NOT so brain dead tonight.
Thanks will take a closer look in the AM.
Should work …
to Get the value with: NowValue=CONTENTS(?Option)
to Set the value with: CHANGE(?Option, NewValue)
Not exactly what you asked for but another way to use ?FEQ to Read / Write control value and USE Variable. Also useful sometimes is ?feq{Prop:ScreenText}