Brian Dunning's FileMaker Custom Functions

thisSideOfThat ( text, character ; direction )

Get whats to the left or right of the specified character in the text field. It takes 3 parameters. text, character,direction

  Be the first to rate this function Log in to vote

Binu Alexander   Binu Alexander - Show more from this author
ASC,
https://www.linkedin.com/in/drbinualexander/

Share on Facebook Share on Twitter

  Sample input:
thisSideOf( "John Doe" ; " " ; "left" ) // Returns "John"

thisSideOf( "user@example.com" ; "@" ; "left" ) // Returns "user"


thisSideOf( "No character here" ; "," ; "left" ) // Returns ""

thisSideOf( "Invalid direction" ; "d" ; "center" ) // Returns ""
  Sample output:
Jonh, user and, "","" respectively

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Get whats to the left or right of the specified character in a text field.

thisSideOf extracts text either to the left or right of a specified character in a given string.

It takes three parameters: the text to search, the character to find, and the direction ('left' or 'right') to extract from.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: