Data Access User Manual > Rogue Wave Views Data Access Common Framework > Handling Values in Data Access > The IliValue Class > Null Value
 
Null Value
The null value is a special value that can be used to denote an unspecified value. You can check for the null value with the isNull method.
IliValue value;
...
if (value.isNull()) {
...
}
An object can have a null value in two situations: either it has been constructed with no initial value just by specifying its data type (shown above) or it has been set as null using the setNull method.
The setNull method also allows you to change the object data type. This can be seen in the following code sample:
IliValue value = “aString”;
value.setNull(); // value set to null,
// datatype remains IliStringType
value.setNull(IliIntegerType); //datatype is now IliIntegerType

Version 6.1
Copyright © 2016, Rogue Wave Software, Inc. All Rights Reserved.