Brian Dunning's FileMaker Custom Functions

ParseParameter ( text ; pipe )

Parses a script parameter where values are separated by pipes

  Average rating: 4.0 (41 votes) Log in to vote

Michael Gallagher   Michael Gallagher - Show more from this author
Mankuta | Gallagher
http://www.mankutagallagher.com

Share on Facebook Share on Twitter

  Sample input:
ParseParameter ( |Jane|Mary Beth|Joe| , 2 )
  Sample output:
Mary Beth

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

This function will parse long script parameters where values are separated by Pipes eg |a|b|c|. This can be more dependable than looking for word position, since some variables like first names (Mary Beth) or email (jim_smith@xyz.com) can introduce two words whare one is expected. In this example the Pipes (|) are expected at the beginning and end of the parameter and between each variable, without spaces. Returns the middletext string starting at the desired pipe, length of text betweeen the desired pipe and the following pipe.

 

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: