Previous topic

obj_set_parent

Next topic

ObjBeginEnum

This Page

obj_set_str_returnΒΆ

obj_set_str_return specifies the return value of obj_lookup if a key does not exist.

bStr = obj_set_str_return(obj)
bStr = obj_set_str_return(obj, bStrReturn)

Return Value

bStr is TRUE (1), if obj_lookup returns an empty string ("") if a key does not exists or FALSE (0), if the value 0.0 is return for an non existing key.

Parameters

obj

obj is the object created with obj_create.

bStrReturn

bStrReturn see return value.

Comment

The alternative syntax for obj_set_str_return(m) is m.set_str_return().

Example

obj = obj_create()
obj.set_str_return(1)
obj.a == ""

id-2095559