Skip to content

VarIsType

Check if a variant is of certain type

Declaration

Source position: variants.pp line 70

  function VarIsType(const V: Variant; aVarType: tvartype) : Boolean
                    ;  Overload;
  function VarIsType(const V: Variant; const AVarTypes: Array of tvartype)
                     : Boolean;  Overload;

Description

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

See also

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