4D v14.3OB SET ARRAY |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
OB SET ARRAY
OB SET ARRAY
The OB SET ARRAY command defines the array to be associated with the property in the language object designated by the object parameter. object must have been defined using the C_OBJECT command. In the property parameter, pass the label of the property to be created or modified. If the property already exists in object, its value is updated. If it does not exist, it is created. In the array parameter, pass the array that must be passed as the property value. Several array types are supported. Note: It is not possible to use two-dimensional arrays. Using a text array: C_OBJECT($Children) Adding an element to an array: ARRAY TEXT($arrText;2) Using a text array with selection of an element: // $Employees = {"Employees":["Smith","White","Brown"]} Using an object array: C_OBJECT($Children;$ref_richard;$ref_susan;$ref_james) Here is how the object appears in the debugger: |
PROPERTIES
Product: 4D
HISTORY
SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v14 R2) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||