home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
windows
/
pdoxeng
/
gotolock.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-04-11
|
730b
|
32 lines
program GotoLock;
uses PXEngine, WinCrt;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
RecHandle: RecordHandle;
LckHandle: Integer;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
PX(PXRecBufOpen(TblHandle, RecHandle));
PX(PXNetRecLock(TblHandle, LckHandle));
(* Go to record previously locked *)
PxErr := PXNetRecGotoLock(TblHandle, LckHandle);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr));
PX(PXNetRecUnlock(TblHandle, LckHandle));
PX(PXRecBufClose(RecHandle));
PX(PXTblClose(TblHandle));
PX(PXExit);
end.