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