This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
OB Values

OB Values 


 

OB Values ( object ) -> Function result 
Parameter Type   Description
object  Object in Object to return property values
Function result  Collection in 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.

Example  

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}



See also 

OB Entries
OB Keys

 
PROPERTIES 

Product: 4D
Theme: Objects (Language)
Number: 1718

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R3

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)