home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a006 / 1.ddi / PASEXAM.ZIP / RECAPP.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1991-03-11  |  510 b   |  24 lines

  1. program RecApp;
  2. uses PXEngine;
  3.  
  4. const TableName = 'Table';
  5.  
  6. var   PxErr: Integer;
  7.       TblHandle: TableHandle;
  8.       RecHandle: RecordHandle;
  9.  
  10. begin
  11.   PX(PXInit);
  12.   PX(PXTblOpen(TableName, TblHandle, 0, False));
  13.   PX(PXRecBufOpen(TblHandle, RecHandle));
  14.  
  15.   (* Append an empty record to the table *)
  16.   PxErr := PXRecAppend(TblHandle, RecHandle);
  17.   if PxErr <> PxSuccess then
  18.     Writeln(PxErrMsg(PxErr));
  19.  
  20.   PX(PXRecBufClose(RecHandle));
  21.   PX(PXTblClose(TblHandle));
  22.   PX(PXExit);
  23. end.
  24.