Hex to Int conversion

Hi Team,
I have a Character array. Each element is a Hex representation of a piece of data. e.g. 0A=10, 32=50, E7=231.
In some cases it takes two characters to create the Data element (they have to be reversed). e.g. 0A1D becomes 1D0A=7434.
How do I convert a single element, aChar([iCounter], to an Integer please?

Regards & TIA,
Ian

Hi Ian,
In .NET, you can use Int32.Parse, with AllowHexSpecifier in its style parameter.

There’s also Sugar.Convert.HexToInt32() for cross-platform use.

Thanks Patrick. That did the trick.

Regards,
Ian

Thanks mh,
Interesting. HexToInt32 would be exactly what I wanted up front. Don’t know anything about Sugar.

Regards,
Ian