home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
windows
/
pdoxeng
/
fldhand.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-04-11
|
668b
|
29 lines
program FldHand;
uses PXEngine, WinCrt;
const TableName = 'Table';
FIELDNAME = 'Currency Field';
var PxErr: Integer;
TblHandle: TableHandle;
FldHandle: FieldHandle;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
(* Get field handle associated with field name *)
PxErr := PXFldHandle(TblHandle, FIELDNAME, FldHandle);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr))
else Writeln('Field name ',FIELDNAME, ' has field handle ', FldHandle);
PX(PXTblClose(TblHandle));
PX(PXExit);
end.