Skip to main content
Version: Next

OB Values

OB Values ( object ) -> Function result

ParameterTypeDescription
objectObject🡒Object to return property values
Function resultCollection🡐Collection of property values (variant)

Description

The OB Values command returns a collection of variants containing all of the enumerable property values of the object.

The order of values within the returned collection follows the definition order of the properties.

Example

You want a collection with all property values of an object:

 var $person : Object
 var $col : Collection
 
 $person:=New object
 $person.lastName:="Smith"
 $person.firstName:="Jenny"
 $person.children:=New object("Mary";12;"Mark";8)
 
 $col:=OB Values($person)
 
  //$col[0]="Smith"
  //$col[1]="Jenny"
  //$col[2]={"Mary":12,"Mark":8}

See also

OB Entries
OB Keys