Skip 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.

Check if File is open

Featured Replies

  • Newbies

Is there a way to script checking if a file is already open, in a startup file?

So if a user opens the starter file, it can perform the check, and then bypass normal startup proceedures etc etc.

The DatabaseNames function returns all the names of opens files, paragraph delimited. To look for a file called "HotStuff.fp5" you'd use the function...

PatternCount ( "P" & DatabaseNames & "P", "P" & "HotStuff" & "P" ) > 0

...where the P in "P" is really the paragraph symbol.

  • Author
  • Newbies

You are the master!!!

Thanks fr your help Vaughan.

You don't have to separate the pilcrows from the filename, nor is the > 0 portion necessary.

If [PatternCount( "

I was waiting for somebody to suggest those changes ;-)

I usually separate the pilcrows (never knew there were called that) only to make the string a bit more readable. It also allows the string constant to be replaced with a field name very easily.

But yeah, all good comments.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.