home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a006 / 2.ddi / CEXAM.ZIP / RECPREV.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-11  |  433 b   |  23 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.     PXRecLast(tblHandle);
  14.  
  15.     /* Go to previous record */
  16.     if ((pxErr = PXRecPrev(tblHandle)) != PXSUCCESS)
  17.         printf("%s\n", PXErrMsg(pxErr));
  18.  
  19.     PXTblClose(tblHandle);
  20.     PXExit();
  21.     return(pxErr);
  22. }
  23.