I'm developing an app which requires multiple parameters to be set with button options and textbox values. To avoid many almost identical button.click routines i am using the when any Button.Click functionality. The problem is how to assign the selected option to a variable. Attached is a screenshot of a sample dictionary for three buttons. This holds the text for the button and the available options that each click of the button toggles and weel as the selected value. But I need to asign that to a variable. However, I've not found any way to identify the particular variable (see error). If each variable requires its own assignment there seems little point in having a when any Button.Click routine. Any suggestions??
Instead of a global variable named dicButtonOptions, create a value procedure named ButtonOptions, returning what you currently have in dicButtonOptions.
Everywhere you referred to global variable dicButtonOptions, change that to a value call to ButtonOptions.
Run time procedures are allowed to refer to global variables.
Allowing global variables to refer to other global variables would be way too complex for AI2 to build.
This

also needs to be valid (i.e. no red cross) at runtime
