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

  1. program TblUnlck;
  2. uses PXEngine;
  3.  
  4. const TableName = 'Table';
  5.       NetDir    = '';
  6.       NetType    = NotOnNet ;
  7.  
  8. var   PxErr: Integer;
  9.       TblHandle: TableHandle;
  10.  
  11. begin
  12.   PX(PXNetInit(NetDir, NetType, DefUserName));
  13.   PX(PXTblOpen(TableName,TblHandle, 0, False));
  14.   PX(PXNetTblLock(TblHandle, FL));
  15.  
  16.   (* Remove full-lock from a table *)
  17.   PxErr := PXNetTblUnlock(TblHandle, FL);
  18.   if PxErr <> PxSuccess then
  19.     Writeln(PxErrMsg(PxErr));
  20.  
  21.   PX(PXTblClose(TblHandle));
  22.   PX(PXExit);
  23. end.
  24.