@uiradio bug: Cancel button returns 1 not -1
Posted: Tue Jan 09, 2018 3:33 am
Hello,
The Command Reference on @uiradio reads
"The dialog shows an OK and Cancel button, and will return an integer representing the button clicked: Cancel (-1), OK (0)."
However, the Cancel button returns 1 not -1
scalar selection = 0
@uiradio(selection, "Please select an item:", "Item1 Item2 Item3")
@uiprompt(@str(selection))
The Command Reference on @uiradio reads
"The dialog shows an OK and Cancel button, and will return an integer representing the button clicked: Cancel (-1), OK (0)."
However, the Cancel button returns 1 not -1
scalar selection = 0
@uiradio(selection, "Please select an item:", "Item1 Item2 Item3")
@uiprompt(@str(selection))