October 10, 200520 yr I have a script that does somthing critical and in normal use, is irreversable. When the user hits the button I have a custom dialogue that pops up and says "Are You Sure?" - they can then choose "OK" to continue or "Cancel" to... wait for it, cancel - but Hay - I hit cancel and the script just keeps on running!!! - What can I do to allow my user to back out and stop the script from running?
October 10, 200520 yr Sorry if I am missing the point here. You have to pick up the fact that they have hit the cancel button and stop the script. If you stick to the usual left to right of OK Cancel in the Custom Dialog Box definition then the script steps If(Get(LastMessageChoice) = 2) Exit Script End If will do the trick.
Create an account or sign in to comment