How to store textbox calculation in a global variable.
I am facing difficulty in storing values from textbox. I have some complex calculations in my textbox using if else conditions. The final result set is a numeric value and I need to store it in a variable so I can use it later for other calculations. The value in the text box changes when one of the button is clicked.
I know there is a function called getfieldselections() but I think that cannot be used for text boxes. Please correct me if I am wrong.
Please guide me how we can store the value (calculations ) of the text box object in to a variable?
I am not sure if I understand your issue correctly. Do you want the variable to track the selection changes, or do you want it to store the value using the earlier selections?
For the former, define the variable with the same expression as the textbox (including the leading = sign).
For the latter, define a button and use a set variable action and the same expression in the value box (with the = sign). Then you can click the button to update the variable with the value of the expression (which will not change if the selections change).
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein