Page 1 of 1

Can GetObjProperty() return datatype 'Uninit'?

Posted: Tue Dec 08, 2015 3:34 am
by Skinny
Can GetObjProperty() return datatype 'Uninit'?
Is It possible?

Example:

Code: Select all

var valueffa := GetObjProperty(char, "#FFA");
if(valueffa)
	//code stuff
endif
Is it possible 'valueffa' return SUCCESS (TRUE) and the unpacked object that was saved with SetObjProperty return datatype 'Uninit"?

Re: Can GetObjProperty() return datatype 'Uninit'?

Posted: Wed Dec 09, 2015 12:01 pm
by bodom
A simple if is usually the best way to test GetObjProperty() result (unless you expect 0 or "", by example).

When the property is not found, it will return error.

http://docs.polserver.com/pol099/single ... e=uoem.xml