Allegheny Posted September 19, 2001 Posted September 19, 2001 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
LiveOak Posted September 19, 2001 Posted September 19, 2001 I don't think the "show message" is the problem. How about a look at your script? -bd
Allegheny Posted September 19, 2001 Author Posted September 19, 2001 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
JPaul Posted September 20, 2001 Posted September 20, 2001 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now