DefineVariables ( global_boolean )
stores all passed variables as local ($) or global ($$) variables
Be the first to rate this function Log in to vote
Jeff Drake - Show more from this author
Drakeling Technologies |
Set Variable [ $_ ; Value: DefineVariables ( True ) ]
…in a script with parameter:
List (
"customerID:15" ;
"orderID:" & 26 ;
"description:" & Quote ( "purchased by customer on¶date\: 28 Dec 2009" )
) //end List
$$customerID = 15
$$orderID = 26
$$description = "purchased by customer on¶date: 28 Dec 2009"
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Purpose: Create local ($) or global ($$) variables from a return-delimited list of subparameters,
as specified in the script parameter and/or result. If the global_boolean is set to True, the function
will create global ($$) variables; if it is set to False, the function will create local ($) variables.
Syntax:
List (
"VariableName1:Value1" ;
"VariableName2:Value2" ;
…
"VariableNameN:ValueN"
) //end List
For ease of reading, the subparameters may be declared in separate strings, e.g.
"VariableName:" & "ValueName"
Dependencies:
• DefineVariables_
• TrimFrom
Warning: if any variable contains a multiline value in which any subsequent line
begins with a single word followed by a colon, said colon must be preceded by a
backslash, e.g. "Four score and seven years ago, our fathers brought forth¶" &
"First\\: a new nation".
Note: includes dependencies to DefineVariables_ and TrimFrom custom functions.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.