home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
source
/
tpwpxeng
/
tblchged.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
583b
|
28 lines
program TblChged;
uses PXEngine, WinCrt, WinTypes;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
Changed: Bool;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
(* See if table has been changed *)
PxErr := PXNetTblChanged(TblHandle, Changed);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr))
else Writeln('Table has Changed: ', Changed);
PX(PXTblClose(TblHandle));
PX(PXExit);
end.