View Single Post
  #1  
Old 01-01-2008, 11:30 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Need help with weird Bug...

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 ] );
  } 
__________________
Reply With Quote