Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script to Close File

Featured Replies

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

I don't think the "show message" is the problem. How about a look at your script?

-bd

  • 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

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

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.