4D v14.3OB Get |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
OB Get
OB Get
The OB Get command returns the current value of the property of the object, optionally converted into the type specified. object must have been defined using the C_OBJECT command. In the property parameter, pass the label of the property to be read. Note that the property parameter is case sensitive. By default, 4D returns the value of the property in its original type. You can "force" the typing of the value returned using the optional type parameter. To do this, in type you pass one of the following constants found in the Field and Variable Types theme:
The command returns the value of the property. Several types of data are supported. Note that:
Retrieving a text type value: Retrieving a real number value converted into a longint: OB SET($ref ;"age";42) Retrieving the values of an object: Modifying the age of an employee twice: C_OBJECT($ref_john;$ref_jim) Deserializing a data string formatted in ISO: Using nested objects: C_OBJECT($ref1;$child;$children) |
PROPERTIES
Product: 4D
HISTORY
SEE ALSO
Field and Variable Types ARTICLE USAGE
4D Language Reference ( 4D v14 R2) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||