Method Reference > Quick Reference for All Methods > VarTypeFromDataType Method |
C1QueryFrame.VarTypeFromDataType (DataType)
Notes
Method applies to C1QueryFrame control.
Arguments
DataTypeis a long number representing an ADO/OLE DB data type. See Field.Type for the list of all possible data types.
Return Value
The method returns one of variant data types, such as vbString, vbLong, vbDate, and so on, corresponding to DataType.
Description
C1Query uses ADO/OLE DB data types (see Field.Type), which include variant data types customary to a Visual Basic programmer, but they also include other types. ADO/OLE DB type system is richer, allows finer type distinctions than the system of variant types, such as vbString(=8), vbDate(=7), and so on.
If you need to find a variant type that can be used to represent an ADO/OLE DB data type, use this method.