KeyserSoze
Programmer
Is there a function in VB.NET 2003 to return the hexadecimal value of a character? For example, the hexadecimal value of character µ is B5.
Thanks!
Thanks!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim intValue As Int32 = Convert.ToInt32(Asc([i]yourvaluehere[/i]))
[i]yourdestinationhere[/i] = intValue.ToString("X")
Dim s As String = "µ"
Dim i As Integer = Asc(s)
Dim h As String = Convert.ToString(i, 16)
MsgBox("String: " & s & ControlChars.CrLf & _
"ASCII: " & i & ControlChars.CrLf & _
"Hex: " & h)