.Maui Blog

VB.Net | Convert a hexadecimal to an integer

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

Console.WriteLine(MyInteger)

Exit mobile version