In the dictionary it says
"Pass a parameter reference when you want a handler to change a variable in the calling handler, or when you want a handler to return more than one value."
I want to handle more than one value, so I thought I would write a handler that passes arrays by reference but I can't seem to get it to work. Any idea?
Code: Select all
//handler call_1
initFader  sFadeValueA[1], sAvailabliltyFaderA[1]
//another call_2 from a different location in code
initFader  sFadeValueA[2], sAvailabliltyFaderA[2]
//reference passing doesn't seem to work with arrays
on initFader  @pFadeValueA, @pAvailabliltyFaderA
     put 0 into pFadeValueA
     put "available" into pAvailabliltyFaderA
end initFader
