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