obj_count

obj_count liefert die Anzahl an Variablen in einem Objekt.

n = obj_count(obj)

Returnwert

n ist die Anzahl an Variablen in der Objekt.

Parameter

obj

obj ist ein mit obj_create erzeugtes Objekt.

Kommentar

Die alternative Syntax zu n = obj_count(obj) ist n = obj.count().

Beispiel

obj = obj_create()
obj.a = 123
obj.b = 456
print obj.count() // druckt 2

id-448455