home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
windows
/
pdoxeng
/
recnum.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-04-11
|
581b
|
28 lines
program RecNum;
uses PXEngine, WinCrt;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
RecNumber: RecordNumber;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
(* Get current record number *)
PxErr := PXRecNum(TblHandle, RecNumber);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr))
else Writeln('Current record number is ', RecNumber);
PX(PXTblClose(TblHandle));
PX(PXExit);
end.