Can GetObjProperty() return datatype 'Uninit'?

Open discussion forum. For topics that do not fit anywhere else.

Moderator: POL Developer

Post Reply
Skinny
Expert Poster
Posts: 76
Joined: Wed Dec 19, 2012 10:27 pm

Can GetObjProperty() return datatype 'Uninit'?

Post 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"?
bodom
Former Developer
Posts: 140
Joined: Sat Feb 21, 2015 7:52 pm
Location: Italy

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

Post 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
Post Reply