Objectnbs

This built-in property returns the number of properties of an instance.

This property is used with objectvar to iterate on the properties of a generic instance.

Syntax

MY_INSTANCE.objectnbs

Example

Funprog DUMP_PROPERTIES(OBJ, TEXT)Value Instance OBJ Using OBJECTVariable Char TEXT()(1..)For I=1 to OBJ.objectnbsTEXT(I)=OBJ.objectvar(I)+": "+evalue("OBJ."+OBJ.objectvar(I))Next IEnd
For a complete example, see [Generic Object Dump Example](../api-guide/generic-object-dump-example.md).

See also

Structure, Instance, SetInstance, NewInstance, FreeInstance, FreeGroup, cast, null, objecttype, objectvar.