ProvideX V8.20 > Language Reference > 3. System Functions
452
HTA( ) Function
            Get Hex Value of String
Format
HTA(string$[,ERR=stmtref])
Where:
string$
String expression to convert to hexadecimal format.
stmtref
Program line number or label to transfer control to.
Returns
Hex value of your string.
Description
The HTA( ) function returns the hexadecimal value of a given character string. The
string returned by the HTA( ) function is always twice the length of the original
string and consists solely of the (hex) characters 0-9 and A-F.
Examples
0020 LET A$=HTA("CAT") ! yields 434154
0030 LET A$=HTA("01") ! yields 3031
0040 LET A$=HTA(BIN(10,2)) ! yields 000A