VariableLocalize ( GlobalVariableName )
Changes the scope of a Global variable to a Local variable of the same name, with the same contents.
Average rating: 4.0 (29 votes) Log in to vote
VariableLocalize ( "$$testVar" )
$$testVar = null
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Requires FileMaker 8 or higher.
This function Transfers the contents of a Global Variable to a Local Variable of the same name and clears the original variable.
This is valuable for instances where a Global Variable has been used throughout a process or number of scripts and it no longer needs to exist once the current script completes. Thus the now local variable will be destroyed when the script stops, simplifying cleanup.
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.