val = oData.ItemEx(id).Value
oData.ItemEx(id).Value = val
Set obj = oData.ItemEx(id)
|id||(Variant) Identification of the variable either by its name (String data type, case sensitive text, for example "a1") or by index (zero-based index).|
|nAttr||(Long) Enables to change the behavior of the method.|
0 (default) - default behavior (as Item property).
1 - when referencing the non-existent variable the global error in the INFO system won't be generated.
The Var object includes information about the variable (value, name, index, etc.).
The Item property (like Var object) is read only, it means that the object cannot be changed but for example it is possible to write into the Value of the Var object.
If the variable doesn't exist, then Nothing value is returned. Nothing value can be tested by VBScript Is operator.
' ... error