Hi,
so after some Bugs that I could pass by with VarHandles(e.g. not being able to set temp. vars, or maybe this. vars too ), and some others I reached something unfixable for me, atleast I tried many things
If i comments out the for with /* */ it works, If i don't comments it out the Array will be Echoes as "0", for some reason even before the for...
PHP Code:
function onCreated()
{
TestC = null;
TestC = new TStaticVar();
TestC.mainHandle = this;
TestC.testArr = { { 1, 2 }, { 2, 4 }, { 3, 5 } };
TestC.testingFunc1 = function()
{
TestP.testingFunc2( TestC.testArr );
};
TestP = null;
TestP = new TStaticVar();
TestP.testingFunc2 = function( testArr )
{
TestC.mainHandle.trigger( "EchoR", "arrive:" @ testArr );
VarHandle = null;
for( VarHandle.ty = 0; VarHandle.ty < 5; VarHandle.ty++ )
{
TestC.mainHandle.trigger( "EchoR", "pre " @ VarHandle.ty @ " : " @ testArr );
//VarHandle.ttempp = testArr[ VarHandle.ty ]; Doesnt even work without this...
TestC.mainHandle.trigger( "EchoR", "post " @ VarHandle.ty @ " : " @ testArr );
}
TestC.mainHandle.trigger( "EchoR", { testArr } );
};
TestC.testingFunc1();
}
function onEchoR()
{
echo( params[ 0 ] );
}