Skip to content

VarIsType

Check if a variant is of certain type.

Declaration

Source position: variants.pp line 77

function VarIsType(const V: Variant; aVarType: tvartype) : Boolean
                  ;  overload; overload;
function VarIsType(const V: Variant; 
                  const AVarTypes: Array of tvartype = Word) : Boolean
                  ;  overload; overload;

Description

VarIsType will return True if the variant V is of type aVarType or is in aVarTypes.

See also

Name Description
VarType Return the type of a variant.
VarAsType Attempt to cast a variant to another type.
VarIsByRef Check if the variant is a reference to a value.
VarIsNull Check if a variant is null.
VarIsEmpty Check if the variant is empty.