home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include "pxengine.h"
- main(void)
- {
- TABLEHANDLE tblHandle;
- RECORDHANDLE recHandle;
- int i;
- int pxErr;
-
- PXInit();
- PXTblOpen("table",&tblHandle,0,0);
- PXRecBufOpen(tblHandle,&recHandle);
- for (i=0;i<10;++i)
- {
- PXPutDoub(recHandle,1,(double) i);
- PXRecAppend(tblHandle,recHandle);
-
- /* Save the table to disk every fifth append */
- if (i % 5)
- if ((pxErr = PXSave()) != PXSUCCESS)
- printf("%s\n",PXErrMsg(pxErr));
- }
- PXRecBufClose(recHandle);
- PXTblClose(tblHandle);
- PXExit();
- return(pxErr);
- }
-
-