|
<< Click to Display Table of Contents >> C Examples: DbiGetBookMark |
![]() ![]()
|
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;
}