4D v14.3

OB SET NULL

Home

 
4D v14.3
OB SET NULL

OB SET NULL 


 

OB SET NULL ( object ; property ) 
Parameter Type   Description
object  Object in Structured object
property  Text in Name of property where null value is to be applied

The OB SET NULL command stores the null value 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 where you want to store the null value. If the property already exists in object, its value is updated. If it does not exist, it is created.
Note that the property parameter is case sensitive.

Example  

We want to put the null value in the "age" property for Lea:

 C_OBJECT($ref)
 OB SET($ref;"name";"Lea";"age";4)
  // $ref = {"name":"Lea","age":4}
 ...
 OB SET NULL($ref ;"age")
  // $ref = {"name":"Lea","age":null}

 
PROPERTIES 

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

 
HISTORY 

New
Created: 4D v14

 
SEE ALSO 

OB SET

 
ARTICLE USAGE

4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)