C Examples: DbiGetIndexForField

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

C Examples: DbiGetIndexForField

Return to chapter overview

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;

}