The GetVariable function retrieves the value of a global variable that was set by the SetVariable function.
variable—A string parameter specifying to the name of the variable to retrieve.
A variant containing the value of the variable.
The following example is a Before Query script. It reads the value of the Path variable, which was set in the Before Integration script, and uses the path information to override the location of the source file for the query.
Query.OverrideFileLocation = GetVariable(“Path”)