Skip to main content
Version: 21 R3

OB REMOVE

OB REMOVE ( object : Object ; property : Text )

ParameterTypeDescription
objectObject→Structured object
propertyText→Name of property to remove
History
ReleaseChanges
15Modified
14Created

Description​

The OB REMOVE command removes the property of the language object designated by the object parameter. This command removes the property as well as its current value.

object can be an object variable or a 4D object field.

In the property parameter, pass the label of the property to be read. Note that the property parameter is case sensitive.

Example​

You want to remove the "age" property of an object:

 var $Object : Object
 OB SET($Object;"name";"smith";"age";42;"client";True)
  // $Object={"name":"smith","age":42,"client":true}
 OB REMOVE($Object;"age")
  // $Object={"name":"smith","client":true}

See also​

OB SET

Properties​

Command number1226
Thread safeyes