C Examples: DbiSaveChanges

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

C Examples: DbiSaveChanges

Return to chapter overview

Save changes to the specified table name.

Save changes to the specified table name. The table must be open on the current session. This example uses the following input:
         fDbiSaveChanges(hCursor);

DBIResult fDbiSaveChanges (pCHAR TblName)

{

   DBIResult      rslt;

   hDBICur        hTmpCur = 0;

   rslt = Chk(DbiGetObjFromName(objCURSOR, TblName, &hTmpCur));

   if (rslt != DBIERR_NONE)

      return rslt;

   rslt = Chk(DbiSaveChanges(hTmpCur));

   return rslt;

}