VB.Net | Convert a hexadecimal to an integer

Dim AnHex As String = "FFFFFF"
Dim MyInteger As Integer = CInt("&H" & AnHex)

Console.WriteLine(MyInteger)

Leave a Comment

Your email address will not be published. Required fields are marked *