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.

Subtracting Text Fields

Featured Replies

  • Newbies

Hi

I have a Filemaker 8.5 database that among other things I use to import images into container fields. I have a text field "PathName" for the path to the imported image and a text field "FileName" for the file name of the imported image. I am trying to create a calculation to extract some of the text from "PathName" which is never the same number of words or letters from the left or right - so I can't use the LeftWords or RightWords functions. But if I could subtract "FileName" from "PathName" I would be left with a constant where I could use RightWords to get the info I need. Is this possible (or is there another easier way to do it)

Examples of the text are as follows:

PathName: file://XServe_Archive/Reference Files/Archive 08_01 /AATGI_Identity Badges 2008_3712/Badges reverse.pdf

FileName: Badges reverse.pdf

Info I need to extract: 3712

PathName: file://XServe_Archive/Reference Files/Archive 08_01 /Expo_On the Water PDF ticket_3744/On The Water Boat Club Ticket.pdf

FileName: On The Water Boat Club Ticket.pdf

Info I need to extract: 3744

As you can see, the info I need to extract is the number directly before the "FileName" in "PathName" (without the '/')

Any help would be really appreciated

Thanks

Frank

Hi

try this calculation:

Let([

p = Substitute ( PathName ; "/" ; ¶ ) ;

t = GetValue ( p ; ValueCount ( p ) - 1 )

];

RightWords ( t ; 1 )

)

This assumes that the number is always preceded by an underscore.

  • Author
  • Newbies

Thanks a million for a really fast reply. Not sure how it works but it works perfectly.

F

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.