September 19, 200124 yr 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
September 19, 200124 yr I don't think the "show message" is the problem. How about a look at your script? -bd
September 19, 200124 yr Author 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
September 20, 200124 yr 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
Create an account or sign in to comment