home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include "pxengine.h"
-
- #define TABLENAME "table"
-
- int main(void)
- {
- RECORDHANDLE recHandle;
- TABLEHANDLE tblHandle;
- int pxErr;
-
- PXInit();
- PXTblOpen(TABLENAME, &tblHandle, 0, 0);
- PXRecBufOpen(tblHandle, &recHandle);
-
- /* Update the current record */
- if ((pxErr = PXRecUpdate(tblHandle, recHandle)) != PXSUCCESS)
- printf("%s\n", PXErrMsg(pxErr));
-
- PXRecBufClose(recHandle);
- PXTblClose(tblHandle);
- PXExit();
- return(pxErr);
- }