March 2000
Intermediate to advanced
576 pages
18h 13m
English
VarIsEmpty Function
function VarIsEmpty(const V: Variant): Boolean;
VarIsEmpty
returns True if the
Variant
V has the
varEmpty type, and it returns False for any other
kind of Variant. A
Variant’s initial type is
varEmpty.
VarIsEmpty is a real function.
// Convert a Variant to a TDateTime, but if the Variant
// does not have a value, return the current date and time.
function GetDate(V: Variant): TDateTime;
begin
if VarIsEmpty(V) or VarIsNull(V) then
Result := Now
else
Result := VarToDateTime(V);
end;| Unassigned Variable, VarClear Procedure, Variant Type, VarIsNull Function, VarType Function |
Read now
Unlock full access