Integer.FromHex

From Xojo Documentation

Shared Method

Integer.FromHex(hexValue As String) As Integer

New in 2019r2

Converts a string form of a hexadecimal number to an Integer.


Shared Method

Integer.FromHex(theText As Text) As Integer

Converts a text form of a hexadecimal number to an Integer.

Exceptions

Sample Code

Convert "ff" to the integer value of 255:

Var value As Integer
value = Integer.FromHex("ff") // value = 255