mattlight Posted October 18, 2001 Posted October 18, 2001 Hi y'all, I have a script with an IF loop in it which stipulates something like:- IF ("Status(CurrentError)>400 Show Message ("The payment method field must be completed") Exit Script ELSE IF ("Sta........... Show Message ("............. bla bla bla bla ELSE IF ....... End IF End If End Quiff (bla bla bla) The above is not exact but the ideas there.. It all works and comes up with a box with the message and option OK or CANCEL. QUESTION... If I click OK it all works. If I click CANCEL it still carries on as if I had hit OK. How do I set the Cancel button on the message to work? Thanks in advance. Matt
LiveOak Posted October 18, 2001 Posted October 18, 2001 Show Message doesn't take any action on its own. You must test the button pressed in the Show Message dialog: If(Status(CurrentMessageChoice) = 1) exit script else ... End If Your first two script steps should be: Allow User Abort (off) Set Error Capture (on) -bd
mattlight Posted October 22, 2001 Author Posted October 22, 2001 Thanks for that! Is it - 1=Cancel 2=OK ???? ?? ?? ?? ?? ?? ?? ?? Thanks for all your help
LiveOak Posted October 22, 2001 Posted October 22, 2001 The buttons are labeled 1..2..3 from right to left. For the default names 1=OK, 2=Cancel. -bd
FUBAR Posted October 26, 2001 Posted October 26, 2001 Also keep in mind that if the user clicks on the "x" to close the window instead of answering "OK" or "Cancel" this also returns a choice number. At least...I think it does. I have been wrong before
Recommended Posts
This topic is 8769 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