Stop Code When Cancel Button PressedI have some code that allows users to pick several options. If they press OK then the code runs as expected but I can't get the cancel button to cancel the code. Exiting the window also results in the code being run. I would like the user to be able to cancel or exit the window and have that stop the code.
win = New Window( "Customise Analysis",
<<MODAL></MODAL>
Sharing and Communicating ResultsWindowsRe: Stop Code When Cancel Button PressedOne option would be to use the button value returned from the window:
Names Default To Here(1);
nw = New Window("Dialog() example",
<<MODAL></MODAL>