The following code will allow you to convert a String buffer containing the binary data to hexadecimal notation benchmark BenchmarkName use "kernel.bdh" dcluser user VirtUser transactions TmyTrans1 : 1 ; dcltrans transaction TmyTrans1 var sData,sString2: string ; begin sData := "Boy"; print (sData); Bin2Hex(sData, binlen(sData), sString); print(sString2); end TmyTrans1; Output sData := Boy sString := 426F79 NB. In the function Bin2Hex if you enter binary data which is already in hexademcinal notation (i.e. "\h110022") as an input paramEter in the "sData" parameter then the function will convert the Hex data from a Binary string into a normal string (i.e. "110022").
↧