Thread: Passing Objects
View Single Post
  #14  
Old 06-12-2006, 05:31 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Riot
You know there is a built-in savevarstoarray function

HTML Code:
temp.object = new TStaticVar();
temp.object.test = "test";
temp.object.test.bar = "test2";

temp.arrayholder = temp.object.savevarstoarray(false);
echo(temp.arrayholder) outputs
HTML Code:
scriptlogmissingfunctions=false,timeout=0,joinedclasses=,test=test,test.bar=test2
http://wiki.graal.net/index.php/Crea...lVar#Functions
Ah, nice. I couldn't find a function like that when I originally wrote that code. It was probably there, I just wasn't looking hard enough.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote