home *** CD-ROM | disk | FTP | other *** search
- program PutAlpha;
- uses PXEngine;
-
- const TableName = 'Table';
- BUF = 'NEW ALPHA String';
-
- var PxErr: Integer;
- TblHandle: TableHandle;
- RecHandle: RecordHandle;
- FldHandle: FieldHandle;
-
- begin
- PX(PXInit);
- 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.