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

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

Recommended Posts

Posted

In binding my file with a runtime solution, I need to have a script to quit. I used a "status of message" function that reads "Are you sure you want to quit?" and gives the choices OK and Cancel. Everything works fine when OK is chosen. But when Cancle is selected, the file quits anyway.

Can anyone help me better understand the status function that will make my script work?

Allegheny

Posted

Show message ["Are you sure you want to quit?"]

If [""Status(CurrentMessageChoice)=1""]

Close [file]

Else

If[""Stats(CurrentMessageChoice)=2""]

Go to Previous Field

End if

End if

Quit Application

Posted

This is due to the fact that 'Quit app.' is uncontrolled (it is outside any control-flow statement, then it quits anyway).

Put it into the first IF block (in which you test if the OK button is depressed) and all will work correctly.

Best regards

This topic is 8470 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.