Kurt
Regular
Is there a more nice/elegant way of converting a string representing a hexadecimal value to an integer value? At the moment I am doing something like...
Amazingly this works, while the folowing doesn't
any comments are more then welcome...
Visual Basic:
Public Function MakeInt1(ByVal HexValue As String) As Integer
Return CType("&H" & HexValue, Integer)
End Function
Amazingly this works, while the folowing doesn't
Visual Basic:
Public Function MakeInt2(ByVal HexValue As String) As Integer
Return Convert.ToInt32("&H" & HexValue)
End Function
any comments are more then welcome...