User Tools

Site Tools


api:dk11:delphi:gisinternals.getvarianttype_variant

Table of Contents

GetVariantType method

DK11 for Delphi | GisInternals.GetVariantType | Enums | Fields | Methods | Types

Returns simplified type of provided variant variable.

Syntax

// Delphi
function GetVariantType(
  const _var : Variant
) : TGIS_VariantType;
// C++ Builder
extern DELPHI_PACKAGE TGIS_VariantType* GetVariantType(
  Variant* const _var
);

Parameters

Name Type Description
_var Variant variant value to be tested

Result

Type Description
TGIS_VariantType Simplified type of provided variant variable.

Remarks

Use this function to simplify testing and make it easier for cross-platforms porting. Returned value will group similar variant types. For Example all normal integers like varInteger, varSmallInt, varShortInt will be grouped as TGIS_VariantType.Int.

2017/09/04 11:15