Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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

Posted

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 tongue.gif" border="0

This topic is 8433 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
×
×
  • Create New...

Important Information

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