I have a string that contains a 2 digit hex value such as "1A" or "AF". I need to convert this to an integer (The decimal equivalent). Is there an easy way to do this?
Ok I think I am lost. Maybe you can help? I am inputting a value from 00 to FF from a string. No matter what I do when tying to convert this I get a force close. Here is my code.
B4X:
Dim i As Int
i = Bit.ParseInt("DataIn(4)", 4)
Toast.Show(i,True)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.