Brian Dunning's FileMaker Custom Functions

ParseParagraph ( string )

Turns paragraphs using

  Be the first to rate this function Log in to vote

Richard Dyce   Richard Dyce - Show more from this author
Dyce & Sons Ltd.
http://dyce.com

Share on Facebook Share on Twitter

  Sample input:
ParseParagraph ( "Member's Name:: Bingo Jones¶Name of Card Holder:: Mr B Jones Esq.
¶Certificate No (if any)::¶" ; "::" )
  Sample output:
"members_name¶name_of_card_holder"

variables:

$members_name = "Bingo Jones"
$name_of_card_holder = "Mr B Jones Esq."

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

Takes a list of delimited name:value paragraphs, and creates the appropriate variables. It returns a list of variables that were created, to make testing for required params easier in scripts, e.g.

If [ FilterValues ( ParseParagraph ( Get ( ScriptParameter ) ; Char ( 9 ) ) ; "card_number¶cvc_code" ) ]

Checks to see whether $card_number and $card_number were both created.

 

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 16 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: