Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Wiki Page: How can I convert the ASCII representation of Binary data into a string containing its equivalent Hexadecimal notation?

$
0
0
  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").

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>