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

  1. #include <stdio.h>
  2. #include "pxengine.h"
  3.  
  4. #define TABLENAME        "table"
  5. #define NETDIR           ""
  6. #define NETTYPE          NOTONNET
  7.  
  8. int main(void)
  9. {
  10.     TABLEHANDLE tblHandle;
  11.     int pxErr;
  12.  
  13.     PXNetInit(NETDIR,NOTONNET,DEFUSERNAME);
  14.     PXTblOpen(TABLENAME, &tblHandle, 0, 0);
  15.  
  16.     /* Refresh to account for any changes by other users */
  17.     if ((pxErr = PXNetTblRefresh(tblHandle)) != PXSUCCESS)
  18.         printf("%s\n", PXErrMsg(pxErr));
  19.  
  20.     PXTblClose(tblHandle);
  21.     PXExit();
  22.     return(pxErr);
  23. }
  24.