Page 1 of 1

Object Properties and Variables

Posted: Sat Apr 11, 2015 9:19 am
by blckfire
My question is,

If I have some code like this:

Code: Select all

var something := struct;
something := GetObjProperty(who, "Property");

Later on...

something.elem := "blahblah";
Do I then need to SetObjProperty(who, "Property", something) to save the change?

My answer to this is yes, but I just wanted to be sure about it, since I have a script that constantly changes a structure that is related to a property.

Re: Object Properties and Variables

Posted: Sat Apr 11, 2015 10:55 am
by Nando
Yes. The GetObjProperty / SetObjProperty use CProps (custom properties) on the object. They just store/load a value, not a reference.

Re: Object Properties and Variables

Posted: Sat Apr 11, 2015 1:41 pm
by blckfire
Thank you for the feedback.