home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
windows
/
pdoxeng
/
putalpha.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-04-11
|
780b
|
33 lines
program PutAlpha;
uses PXEngine, WinCrt;
const TableName = 'Table';
BUF = 'NEW ALPHA String';
var PxErr: Integer;
TblHandle: TableHandle;
RecHandle: RecordHandle;
FldHandle: FieldHandle;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
PX(PXRecBufOpen(TblHandle, RecHandle));
PX(PXFldHandle(TblHandle, 'Alpha Field', FldHandle));
(* Put string into record *)
PxErr := PXPutAlpha(RecHandle, FldHandle, BUF);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr))
else PX(PXRecUpdate(RecHandle, TblHandle));
PX(PXRecBufClose(RecHandle));
PX(PXTblClose(TblHandle));
PX(PXExit);
end.