C Examples: DbiGetBookMark

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

C Examples: DbiGetBookMark

Return to chapter overview

Set a bookmark on the current position of a cursor:

Note:                The table must have a primary index. This example uses the following input:
         fDbiGetBookMark(hPXCur, &pBookmark);

DBIResult fDbiGetBookMark(hDBICur hCur, ppBYTE ppBookMark)

{

   DBIResult   rslt;

   CURProps    CurProps;

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

   if (rslt != DBIERR_NONE)

     return rslt;

   *ppBookMark = (pBYTE)malloc(CurProps.iBookMarkSize);

   rslt = Chk(DbiGetBookMark(hCur, *ppBookMark));

   return rslt;

}