Hello!
I have a problem about convert decimal to hex format, I need to convert decimal to hex format 2 digit.
Exp. "1000"(dem) to "03 E8" , can someone help me.
Problem : Convert Decimal to Hex
Page 1 of 11 Replies - 189 Views - Last Post: 06 February 2013 - 09:33 PM
Replies To: Problem : Convert Decimal to Hex
#2
Re: Problem : Convert Decimal to Hex
Posted 06 February 2013 - 09:33 PM
little_prince41, on 06 February 2013 - 07:46 PM, said:
I have a problem about convert decimal to hex format, I need to convert decimal to hex format 2 digit.
Exp. "1000"(dem) to "03 E8" , can someone help me.
Exp. "1000"(dem) to "03 E8" , can someone help me.
Just a few examples. I'll leave it up to you to do the entire formatting in whatever way you want.
Dim value As Integer = 1000
Debug.Print(value.ToString("X"))
Debug.Print(value.ToString("X4"))
Debug.Print((value \ 256).ToString("X2"))
Debug.Print((value Mod 256).ToString("X2"))
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|