|
<< Click to Display Table of Contents >> C Examples: DbiGetVchkDesc |
![]() ![]()
|
Get the first Validity Check Descriptor for the specified cursor.
This example uses the following input:
fDbiGetVchkDesc(hCur, &VchkDesc);
DBIResult fDbiGetVchkDesc(hDBICur hCur, pVCHKDesc pVchkDesc)
{
DBIResult rslt;
CURProps CurProps;
rslt = Chk(DbiGetCursorProps(hCur, &CurProps));
if(CurProps.iValChecks > 0)
rslt = Chk(DbiGetVchkDesc(hCur, 1, pVchkDesc));
else
MessageBox(0, "No validity checks on this table", "Validity Check Warning", MB_OK);
return rslt;
}