program TblUnlck;
uses PXEngine, WinCrt;

const TableName = 'Table';
      NetDir    = '';
      NetType	= NotOnNet ;

var   PxErr: Integer;
      TblHandle: TableHandle;

procedure PX(Code : integer);
begin
  writeln(PXErrMsg(Code));
end;

begin
  PX(PXWinInit('MyApp', pxShared));
  PX(PXTblOpen(TableName,TblHandle, 0, False));
  PX(PXNetTblLock(TblHandle, FL));

  (* Remove full-lock from a table *)
  PxErr := PXNetTblUnlock(TblHandle, FL);
  if PxErr <> PxSuccess then
    Writeln(PxErrMsg(PxErr));

  PX(PXTblClose(TblHandle));
  PX(PXExit);
end.
