4D v14.3OB SET |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
OB SET
OB SET
The OB SET command creates or modifies one or more property/value pairs 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 value parameter, pass the value you want to set for the property. Several data types are supported. Note that:
Creating an object and adding a text type property: C_OBJECT($Object) Creating an object and adding a Boolean type property: Modifying a property: // $Object = {"FirstName":"John","LastName":"Smith"} Adding a property: // $Object = {"FirstName":"John","LastName":"Smith"} Renaming a property: Using a pointer: // $Object = {"FirstName":"Paul","LastName":"Smith"} Using an object: C_OBJECT($ref_smith) You can also change a value on the fly: OB SET($ref_smith ;"name";"Smyth") Using an object array: C_TEXT($jsonString) |
PROPERTIES
Product: 4D
HISTORY
SEE ALSO
OB REMOVE ARTICLE USAGE
4D Language Reference ( 4D v14 R2) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||