Thread: Passing Objects
View Single Post
  #4  
Old 06-04-2006, 11:05 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
There is no way to pass them via triggeractions, but I did come up with a little way to avoid that.

To send it:
PHP Code:
temp.object = new TStaticVar();
temp.object.test "Testing 123";

temp.arrayholder NULL
for(temp.vnametemp.object.getdynamicvarnames()) {
  
temp.arrayholder.add(temp.vname "=" temp.object.(@temp.vname));
}

triggerserver("gui"this.name"sendobject"temp.arrayholder); 
To receive it:
PHP Code:
function onActionServerside() {
  if(
params[0] == "sendobject") {
    
temp.object.loadvarsfromarray(params[1]);
    echo(
temp.object.test);
  }

__________________


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