obj_count_numΒΆ

obj_count_num returns the number of number keys in an object.

n = obj_count_num(o)

Return Value

n is the number of number keys in the object.

Parameters

o

o is the object created with obj_create.

Comment

An alternative syntax for n = obj_count_num(m) is n = m.count_num().

Example

m = obj_create()
m.a = 123
m.b = 456
m[1] = 3
print m.count_num() // prints 1

id-462754