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.

Calc to show just last part of a directory path

Featured Replies

FTP:DOWNLOAD:FILES:VERSO:AD.JPG

This is the contents typed into a field. It represents a directory path to a file. Is there a way to have a calculation that will result in showing only the last item in a path, regardless of the length of the path:

AD.JPG

How about a variation that shows the last two items?

VERSO:AD.JPG

LR

For the file name only:

Middle(PathName, Position(PathName, ":", 1, PatternCount(PathName, ":"))+1, 64000)

For the last two items:

Middle(PathName, Position(PathName, ":", 1, PatternCount(PathName, ":")-1)+1, 64000)

  • Author

When I tried to use the calc above I got an error:

"An operator (e.g. +, -, *, ...) is expected here."

The portion it highlighted for the error was Count(

Any thoughts?

I have tested the formula, and it works. Double check your syntax to make sure you didn't miss some punctuation. Also, don't forget to replace all occurances of "PathName" with the actual name of your directory path field.

And make sure that the version of Filemaker you are using uses commas as delimiters (since you are in the US, I assume it does).

Create an account or sign in to comment

Important Information

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

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.