Variant.VarType

Syntax

VarType: ForeVariantType;

Description

The VarType property returns the data type, to which the variable value belongs.

Example

Sub UserProc;
Var
    v: Variant;
Begin
    v := Line;
    Debug.WriteLine(v.VarType);
End Sub UserProc;

After executing the example a message containing the type of the value of the "v" variable is displayed.

See also:

Variant