Jump to content

Show message with OK and CANCEL simple?


This topic is 7294 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 7294 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.