objectValues
objectValues* ( object : object ) : collection
Parameter | Type | Description | |
---|---|---|---|
object | object | → | Object to return property values |
Result | collection | ← | Collection of property values (variant) |
Description
The objectValues
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
var person : object
var col : collection
person = newObject
person.lastName = "Smith"
person.firstName = "Jenny"
person.children = newObject("Mary",12,"Mark",8)
col = objectValues(person)
//col[0]:"Smith"
//col[1]:"Jenny"
//col[2]:{"Mary":12,"Mark":8}