home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
source
/
tpwpxeng
/
recprev.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
509b
|
27 lines
program RecPrev;
uses PXEngine, WinCrt;
const TableName = 'Table';
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(PXRecLast(TblHandle));
(* Go to previous record *)
PxErr := PXRecPrev(TblHandle);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr));
PX(PXTblClose(TblHandle));
PX(PXExit);
end.