Option Dialog is a convenient way to select 1 button out of 3 to answer a question. But it's not easily possible to know which one of the 3 buttons has been pressed and you generally have to create from 1 to 3 different macros or action blocks to execute the specific actions involved by the choice you just made.
This very simple Action Block allows to get a return code in 2 ways: either a numerical value to indentify which button has been pressed or a specific text, or both of them.
Now you can assign a UNIQUE Action Block to EVERY buttons of ALL your Option Dialog boxes and just enter the values (integer and/or string) you want to retrieve, i.e. to get a "Return code" of 1 for the left button, enter this value as input in the configuration parameters of the DialogOption action block.
Try the example below to fully understand and... enjoy!
A temporary bug prevents from entering negative numbers in the Configure parameters of the Action Block... So it's not possible yet to enter values such as (-1, 0, 1) as numerical values for buttons (left, center, right). In this example, (1, 0, 2) are used instead.
This very simple Action Block allows to get a return code in 2 ways: either a numerical value to indentify which button has been pressed or a specific text, or both of them.
Now you can assign a UNIQUE Action Block to EVERY buttons of ALL your Option Dialog boxes and just enter the values (integer and/or string) you want to retrieve, i.e. to get a "Return code" of 1 for the left button, enter this value as input in the configuration parameters of the DialogOption action block.
Try the example below to fully understand and... enjoy!
A temporary bug prevents from entering negative numbers in the Configure parameters of the Action Block... So it's not possible yet to enter values such as (-1, 0, 1) as numerical values for buttons (left, center, right). In this example, (1, 0, 2) are used instead.