Create a string value that has four hexadecimal digits. : Hex « Data Type « VB.Net Tutorial






Module Example
   Public Sub Main()
        Dim byteValues() As Byte = { 12, 163, 255 }
        For Each byteValue As Byte In byteValues
           Console.WriteLine(byteValue.ToString("X4"))
        Next
   End Sub
End Module








2.17.Hex
2.17.1.Hex
2.17.2.Hex: output hexadecimal value
2.17.3.Create a string value that has four hexadecimal digits.