Check reverse example Converting an integer value to a hexadecimal string.
#DEFINE STIF_DEFAULT 0
#DEFINE STIF_SUPPORT_HEX 1
DECLARE SHORT StrToIntEx IN Shlwapi;
STRING pszString,;
INTEGER dwFlags,;
INTEGER @ pllRet
LOCAL lcHex, lnRet
lcHex = "0x800"
lnRet = 0
= StrToIntEx (lcHex, STIF_SUPPORT_HEX, @lnRet)
? lnRet
STIF_DEFAULT mode supports regular decimal notation.