home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a006 / 2.ddi / CEXAM.ZIP / RECNEXT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-11  |  419 b   |  22 lines

  1. #include <stdio.h>
  2. #include "pxengine.h"
  3.  
  4. #define TABLENAME        "table"
  5.  
  6. int main(void)
  7. {
  8.     TABLEHANDLE tblHandle;
  9.     int pxErr;
  10.  
  11.     PXInit();
  12.     PXTblOpen(TABLENAME, &tblHandle, 0, 0);
  13.  
  14.     /* Go to the next record in the table */
  15.     if ((pxErr = PXRecNext(tblHandle)) != PXSUCCESS)
  16.         printf("%s\n", PXErrMsg(pxErr));
  17.  
  18.     PXTblClose(tblHandle);
  19.     PXExit();
  20.     return(pxErr);
  21. }
  22.