home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
source
/
tpwpxeng
/
recunlck.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
579b
|
28 lines
program RecUnlck;
uses PXEngine, WinCrt;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
LckHandle: LockHandle;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
PX(PXNetRecLock(TblHandle, LckHandle));
(* Unlock previously locked record *)
PxErr := PXNetRecUnlock(TblHandle, LckHandle);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr));
PX(PXTblClose(TblHandle));
PX(PXExit);
end.