inline void* CRBase::GetData(ULONG nCol);
Return Value
A pointer to a data.
Parameter
[in] nCol:
A column ordinal.
Remark
Gets a pointer to a data for the column nCol. If the column nCol is a BLOB, the returned pointer may be NULL. As long as neither CRBase::SetDataType nor CRBase::SetDBPart is called, the returned pointer itself will not be changed but the pointed value may be changed.
A caller can also get a column data with CRBase::GetDataEx by creating a temporary accessor. This function is similar with CRBase::GetDataEx, but there are differences between the two. The former uses internal reading accessor and is efficient for getting a data, but the later uses a temporary accessor with better flexibility and is somewhat less efficient because it needs to create a temporary accessor and release it after call.