obj_count_strΒΆ

obj_count_str returns the number of string keys in an object.

n = obj_count_str(obj)

Return Value

n is the number of string keys in the object.

Parameters

obj

obj is the object created with obj_create.

Comment

An alternative syntax for n = obj_count_str(obj) is n = obj.count_str().

Example

obj = obj_create()
obj.a = 123
obj.b = 456
print obj.count_str() // prints 2

id-1528563