Icon VarNull

Unit: Internal

Available In: Client and Server Applications

function VarNull(const Value: Variant)

The VarNull function returns True if the variant input parameter is Null and False if the variant input parameter has been assigned a value.

Information The Null value is a special variant value that indicates that a given variant does not have a value (or type). It is different from a nil value that is used with object instances, class types, method and routine references, and arrays.

Examples

var
   MyValue: Variant;
begin
   MyValue := 'Hello World';
   X := VarNull(MyValue);  // X is False
   VarClear(MyValue);
   X := VarNull(MyValue);  // X is True
end
Image