B4J Question Hex to decimal

Anurag Jain

Member
Licensed User
Hi, I need to convert a 8 digits hex to a decimal number. I have tried this code, but it works well upto 6 digits, than more digits, it gives an error. Request someone to help

Dim line As String="0x1B glass WebApplicationIcons"
Dim data() As String
line = "1234ABCD"
data=Regex.Split(" ",line)
Log( Bit.ParseInt(data(0).Replace("0x",""),16) )

Regards,

Anurag
 
Top