Function overview
Prototype
VariablesLoadFromLog (
_varlog )
Parameters
_varlog a list of variables declared by function VariablesLog
Description
Tags:
Variables Debug
sets variables logged by VariablesLog function.
Typically, use VariableLog function to set variables in a file, then pass them to another file by passing
$$VariablesLog as the VariableLoadFromLog function argument.
Examples
Sample input
VariablesLoadFromLog ( Get ( ScriptParameter ))
Sample output
declares all the varibables listed in the script parameter (potentially from another file)
Function code
/*
VariablesLoadFromLog ( _varlog )
by Fabrice Nordmann
Uses VariablesLog function.
sets variables logged by VariablesLog function.
Typically, use VariableLog function to set variables in a file, then pass them to another file by passing
$$VariablesLog as the VariableLoadFromLog function argument.
v.1.1 Apr 2008, Fabrice Nordmann
adapted for new version of VariableLog (takes repetition number)
*/
Case ( ValueCount ( _varlog ) <= 1 // VariablesLog function uses first line as a title
; ""
; Let ([
_lastval = Substitute ( RightValues ( _varlog ; 1 ) ; ¶ ; "" )
; _pos = Position ( _lastval ; "|" ; 1 ; 1 )
; _key = Left ( _lastval ; _pos -1 )
; _value = Substitute ( Right ( _lastval ; Length ( _lastval ) - _pos ) ; "#CR#" ; ¶ )
; _dim = VariablesLog ( _key ; 1 ; _value )
];
VariablesLoadFromLog ( LeftValues ( _varlog ; ValueCount ( _varlog ) - 1 ))
) // Let
) // Case
// ===================================
/*
This function is published on FileMaker Custom Functions
to check for updates and provide feedback and bug reports
please visit http://www.fmfunctions.com/fid/104
Prototype: VariablesLoadFromLog( _varlog )
Function Author: Fabrice (http://www.fmfunctions.com/mid/37)
Last updated: 02 October 2013
Version: 1.4
*/
// ===================================
/*__LITBR__VariablesLoadFromLog ( _varlog )__LITBR__by Fabrice Nordmann__LITBR____LITBR__Uses VariablesLog function.__LITBR____LITBR__sets variables logged by VariablesLog function.__LITBR__Typically, use VariableLog function to set variables in a file, then pass them to another file by passing__LITBR__$$VariablesLog as the VariableLoadFromLog function argument.__LITBR____LITBR____LITBR__v.1.1 Apr 2008, Fabrice Nordmann__LITBR__ adapted for new version of VariableLog (takes repetition number)__LITBR__*/ __LITBR____LITBR____LITBR__Case ( ValueCount ( _varlog ) <= 1 // VariablesLog function uses first line as a title__LITBR__; ""__LITBR__; Let ([__LITBR__ _lastval = Substitute ( RightValues ( _varlog ; 1 ) ; ¶ ; "" )__LITBR__ ; _pos = Position ( _lastval ; "|" ; 1 ; 1 )__LITBR__ ; _key = Left ( _lastval ; _pos -1 )__LITBR__ ; _value = Substitute ( Right ( _lastval ; Length ( _lastval ) - _pos ) ; "#CR#" ; ¶ )__LITBR__ ; _dim = VariablesLog ( _key ; 1 ; _value )__LITBR__ ];__LITBR__VariablesLoadFromLog ( LeftValues ( _varlog ; ValueCount ( _varlog ) - 1 ))__LITBR__) // Let __LITBR__) // Case__LITBR____LITBR____LITBR____LITBR__// ===================================__LITBR__/*__LITBR____LITBR__ This function is published on FileMaker Custom Functions__LITBR__ to check for updates and provide feedback and bug reports__LITBR__ please visit http://www.fmfunctions.com/fid/104__LITBR____LITBR__ Prototype: VariablesLoadFromLog( _varlog )__LITBR__ Function Author: Fabrice (http://www.fmfunctions.com/mid/37)__LITBR__ Last updated: 02 October 2013__LITBR__ Version: 1.4__LITBR____LITBR__*/__LITBR__// ===================================