Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6395 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Does any have a quick calculation when trying to get all the text left of a specific word in a field? In this case the word is "time".

Thanks.

Gary

Posted (edited)

name: Left Of

parameters: string, matchstring

definition:

Let(

FirstCharOfMatchString = Position ( string; matchstring ; 1 ; 1 );

Left( string; FirstCharOfMatchString - 1 )

)

All you have to do is pass the string you are `searching for` as matchstring and the string you are `searching` as string. As an example:

Left Of ( "This post was just in time to fix the problem" ; " time" )

would return "This post was just in ". A caveat to this approach is that it will match words like timely or multimedia

Edited by Guest

This topic is 6395 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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