Condividi tramite


CDBVariant::m_dwType

This data member contains the data type for the value that is currently stored in the CDBVariant object's union data member.

Remarks

Before accessing this union, you must check the value of m_dwType in order to determine which union data member to access. The following table lists the possible values for m_dwType and the corresponding union data member.

m_dwType

Union data member

DBVT_NULL

No union member is valid for access.

DBVT_BOOL

m_boolVal

DBVT_UCHAR

m_chVal

DBVT_SHORT

m_iVal

DBVT_LONG

m_lVal

DBVT_SINGLE

m_fltVal

DBVT_DOUBLE

m_dblVal

DBVT_DATE

m_pdate

DBVT_STRING

m_pstring

DBVT_BINARY

m_pbinary

DBVT_ASTRING

m_pstringA

DBVT_WSTRING

m_pstringW

Requirements

Header: afxdb.h

See Also

Reference

CDBVariant Class

Hierarchy Chart

Other Resources

CDBVariant Members