Hex: output hexadecimal value : Hex « Data Type « VB.Net Tutorial






Option Strict On

Public Module modMain
   Public Sub Main()
      Console.WriteLine(Hex("&HE0F1"))
      Console.WriteLine(Hex("&HFFFF"))
   End Sub
End Module
E0F1
FFFF








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.