Jump to content

Script to Close File


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

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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