C Examples: DbiCloneCursor

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

C Examples: DbiCloneCursor

Return to chapter overview

Clone (copy) a cursor and set the specified index. This example uses the following input:
         ffDbiCloneCursor(hOrderCur, &hNewCur, "Customer No");

DBIResult fDbiCloneCursor(hDBICur hTmpCurSrc, phDBICur phTmpCurNew, pCHAR IndexName)

{

   DBIResult rslt;

 

   rslt = Chk(DbiCloneCursor(hTmpCurSrc, FALSE, FALSE, phTmpCurNew));

   if (rslt != DBIERR_NONE)

      return rslt;

 

   rslt = Chk(DbiSwitchToIndex(phTmpCurNew, IndexName, NULL, 0, FALSE));

 

   return rslt;

}