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 OBJECT
Variable Char TEXT()(1..)
  For I=1 to OBJ.objectnbs
    TEXT(I)=OBJ.objectvar(I)+": "+evalue("OBJ."+OBJ.objectvar(I))
  Next I
End
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.