Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15067

VS 2012 How to convert a HEX array to DEC ???

$
0
0
Hi all. I have a collection of raw hexadecimal bytes (2 digits each with a space between i.e. "5E A2 1C") which I want to convert and simultaneously, I want to separate each part with ',' but I don't know how.

I came here with the idea below for second part:
Code:

Dim result as UInt16()
TextBox1.Text = String.Empty
For Each item As UInt16 In result
    TextBox1.Text = String.Format("{0}, ", item)
Next

But I'm really hopeful you guys will come with a better short and organize idea to do both at same time. :wave:

Viewing all articles
Browse latest Browse all 15067

Trending Articles