Return to FileMaker.com
Change Value of Global Variable
Is there a more direct way of changing the $$GlobalVariable value? Below looks like a solution but is very confusing.
Set Variable [$Dummy ; value: Evaluate ( "Let (" & GetValue ( Get ( ScriptParameter ) ; 1 ) & " = " & GetValue ( Get ( ScriptParameter ) ; 2 ) & " ; 1 )") ]
$Dummy receives the value 1, everytime, but the indirectly referenced global variable is assigned a value passed as a parameter as a side effect of this expression using Let to assign a value to the global variable named as the first parameter.
Never mind. What did not work yesterday is working today.
I simply used:
Set Variable [$$GO; Value:1]
and then I use $$GO variable in my scripts throughout all my scripts because $$GO is a global variable.
Retrieving data ...