|
<< Click to Display Table of Contents >> C Examples: DbiGetIndexForField |
![]() ![]()
|
Get the Index descriptor for the current field (if any).
If IdxDesc is null, this function can be used to check if an index exists. It returns DBIERR_NOSUCHINDEX if no index exists. This example uses the following input: fDbiGetIndexForField(hPXCur, 1, &IdxDesc);
DBIResult fDbiGetIndexForField(hDBICur hTmpCur, INT16 Field, pIDXDesc IdxDesc)
{
DBIResult rslt;
rslt = DbiGetIndexForField(hTmpCur, Field, FALSE, IdxDesc);
if (rslt == DBIERR_NOSUCHINDEX)
return rslt;
else
Chk(rslt);
return rslt;
}