Thread: Copying Vars
View Single Post
  #1  
Old 10-28-2010, 12:00 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Copying Vars

HTML Code:
temp.obj = new TStaticVar();
temp.obj.myvartest = "heyeep";
temp.obj.manpoo = {"gee", "wizz"};


temp.n = new TStaticVar();
temp.n.test = "hey";
temp.n.debug = {"rarr", "lolol"};

temp.obj.copyfrom(temp.n);
When copying from another object, it seems to clear the list? Is this supposed to happen?

If so, is there a way to copy the vars from temp.obj to temp.n without deleting it all?
__________________
Reply With Quote