home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
windows
/
pdoxeng
/
reclcked.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-04-11
|
570b
|
28 lines
program RecLocked;
uses PXEngine, WinCrt, winTypes;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
Locked: Bool;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
(* See if record is locked *)
PxErr := PXNetRecLocked(TblHandle, Locked);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr))
else Writeln('Record Locked: ', Locked);
PX(PXTblClose(TblHandle));
PX(PXExit);
end.