home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
windows
/
pdoxeng
/
bufclose.pas
next >
Wrap
Pascal/Delphi Source File
|
1994-04-11
|
562b
|
28 lines
program BufClose;
uses WinCrt, PXEngine;
const TableName = 'Table';
var RecHandle: RecordHandle;
TblHandle: TableHandle;
PxErr: Integer;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(code));
end;
begin
PX(PXWinInit('BufClose', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
PX(PXRecBufOpen(TblHandle, RecHandle));
(* Close a record buffer *)
PxErr := PXRecBufClose(RecHandle);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr));
PX(PXTblClose(TblHandle));
PX(PXExit);
end.