This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
OB Values
|
OB Values ( object ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
object | Object |
![]() |
Object to return property values | |||||
Function result | Collection |
![]() |
Collection of property values (variant) | |||||
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.
You want a collection with all property values of an object:
C_OBJECT($person)
C_COLLECTION($col)
$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}
Product: 4D
Theme: Objects (Language)
Number:
1718
Created: 4D v18 R3
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)