obj_countΒΆ
obj_count returns the number of variables in an object.
-
n = obj_count(obj)
Return Value
n is the number of variables in the object.
Parameters
-
obj
obj is the object created with obj_create.
Comment
An alternative syntax for n = obj_count(m)
is n = obj.count()
.
Example
obj = obj_create()
obj.a = 123
obj.b = 456
print obj.count() // prints 2
See also
id-448455