Data.DB.VarTypeToDataType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function VarTypeToDataType(VarType: Integer): TFieldType;

C++

extern DELPHI_PACKAGE TFieldType __fastcall VarTypeToDataType(int VarType);

Properties

Type Visibility Source Unit Parent
function public
Data.DB.pas
Data.DB.hpp
Data.DB Data.DB

Description

Returns the field type value that most closely corresponds to a Variant type.

Call VarTypeToDataType to infer the type of field component that should hold a value, given its Variant type. Use the VarType function to obtain a Variant type from a Variant.

See Also