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 - Show more from this author
Mankuta | Gallagher http://www.mankutagallagher.com |
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
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.