1 Reply Latest reply on Jan 25, 2013 6:54 AM by hoffmanjan@umkc.edu

    Change Value of Global Variable

    hoffmanjan@umkc.edu

      Title

      Change Value of Global Variable

      Post

           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.

           Thx,

           JanH