RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DB.VarTypeToDataType Function

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

Pascal
function VarTypeToDataType(VarType: Integer): TFieldType;
C++
TFieldType VarTypeToDataType(int VarType);

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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!