Appearance
VarType
Declaration
Function VarType( const V : Variant) : See TVarType
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
if VarType(Field.Value) = varOleStr then
Value := Field.Value;
end;Description
Tests a Variant to determine what data type its value is.
This is more commonly used with Variant type variables rather than fields. When accessing fields you can achieve the same thing by using the Field.FieldType property.