Sets the content of a specified string field within a typed buffer. This function can be used to manipulate any of the following predefined buffer types:
FML, FML32, STRING
TUXEDO.bdh
TuxSetString(in hBuffer : number, in nFieldId : number, in sString : string, in nIndex : number optional): boolean;
true if successful.
false otherwise.
|
const ID_STRINGS := 8; ID_CONCATENATED := 16; dcltrans transaction TMain var hBuffer, olen : number; sString : string; begin Tux_tpbegin(30, 0); // allocate buffer TuxGetBuffer(hBuffer, "FML", NULL, 1024); // store two strings in buffer TuxSetString(hBuffer, ID_STRINGS, "Hello", 1); TuxSetString(hBuffer, ID_STRINGS, " world!", 2); // concatenate strings Tux_tpcall("CONCAT", hBuffer, 0, hBuffer, olen, TPNOFLAGS); // retrieve concatenated string TuxGetString(hBuffer, ID_CONCATENATED, sString, sizeof(sString)); Tux_tpcommit(0); end TMain;
bankappn.bdf