Before your script opens this dialog, add this script step:
Set Error Capture [on]
Immediately after the script step that opens this dialog, add this If step to look for and detect the click of dialog's cancel button:
If [ Get ( LastError ) = 1 ]
Error codes, BTW, are something that you can look up in FileMaker Help
Thanks sorted! I will study Error Codes.
Very quick reply.
A quick short cut to finding a the error codes. If you have the Script Debugger open, there's a blue link next to Last Error:, that opens up the help menu to the error codes.
Thanks Steve, I will check this out.