wjmartin Posted October 10, 2005 Posted October 10, 2005 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?
SlimJim Posted October 10, 2005 Posted October 10, 2005 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.
Recommended Posts
This topic is 6986 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now