Article ID: 173423
Article Last Modified on 10/17/2003
pv A pointer to the field data member whose status you want to check, or NULL to determine if any of the fields are Null.
BOOL CYourRecordset::IsAnyFieldNull()
{
for (DWORD nIndex = 0; nIndex<=m_nFields-1; nIndex++)
{
if (IsFieldStatusNull(nIndex))
return TRUE;
}
return FALSE;
}
Notice that the IsAnyFieldNull() function uses an undocumented function
IsFieldStatusNull(). This function is in the implementation section of the
CRecordset class so note that the function may change in future releases of
MFC. To write code that is not dependent upon undocumented functions, call
IsFieldNull() for each field member in the recordset instead.
Additional query words: kbDatabase kbMFC kbODBC kbOLDocs kbVC420 kbVC500 kbDSupport kbdse
Keywords: kbbug kbdocerr KB173423