Retrieves the value of a specified integer field within a typed buffer. This function can be used to manipulate any of the following predefined buffer types:
FML, FML32
TUXEDO.bdh
TuxGetInt(in hBuffer : number, in nFieldId : number in nIndex : number optional): number;
Integer value retrieved from the typed buffer.
|
const ID_NUMBERS := 8; ID_SUM := 16; dcltrans transaction TMain var hBuffer, olen, nResult: number; begin Tux_tpbegin(30, 0); // allocate buffer TuxGetBuffer(hBuffer, "FML", NULL, 1024); // store two integer value in buffer TuxSetInt(hBuffer, ID_NUMBERS, 8, 1); TuxSetInt(hBuffer, ID_NUMBERS, 4, 2); // calculate sum Tux_tpcall("SUM", hBuffer, 0, hBuffer, olen, TPNOFLAGS); // retrieve result nResult := TuxGetInt(hBuffer, ID_SUM); Tux_tpcommit(0); end TMain;
bankappn.bdf