C Examples: DbiSetToBookMark

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

C Examples: DbiSetToBookMark

Return to chapter overview

Set the cursor to the bookmark position.

If the bookmark is unstable, the cursor will not be moved. This example uses the following input:
         fDbiSetToBookMark(hPXCur, pBook);

DBIResult fDbiSetToBookMark(hDBICur hCur, pBYTE pBookMark)

{

   DBIResult   rslt;

   CURProps    CurProps;

   rslt = Chk(DbiGetCursorProps(hCur, &CurProps));

   if (rslt != DBIERR_NONE)

      return rslt;

   if(CurProps.bBookMarkStable != TRUE)

      return DBIERR_INVALIDBOOKMARK;

   rslt = Chk(DbiSetToBookMark(hCur, pBookMark));

   return rslt;

}