home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
source
/
tpwpxeng
/
tblopen.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
446b
|
25 lines
program TblOpen;
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));
(* Open a table *)
PxErr := PXTblOpen(TableName, TblHandle, 0, False);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr))
else PX(PXTblClose(TblHandle));
PX(PXExit);
end.