October 18, 200124 yr 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
October 18, 200124 yr 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
October 22, 200124 yr Author Thanks for that! Is it - 1=Cancel 2=OK ???? ?? ?? ?? ?? ?? ?? ?? Thanks for all your help
October 22, 200124 yr The buttons are labeled 1..2..3 from right to left. For the default names 1=OK, 2=Cancel. -bd
October 26, 200124 yr 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
Create an account or sign in to comment