HTA
Hexadecimal to ASCII
This string function converts a hexadecimal string to a printable ASCII character string.
Syntax
Section titled “Syntax”HTA (string-value [,ERR=line-ref|,ERC=error-code])string-value- is any string.
line-ref- is the program line number or label to branch to if an error is produced by this function.
error-code- is a programmer-defined error code. Valid values are positive or negative whole numbers.
Remarks
Section titled “Remarks”The two hexadecimal characters per byte are expanded into a single byte each in their printable ASCII character format.
Since the range of each hexadecimal character is $00$ through $0F$, the resultant printable ASCII character format string contains only the characters for 0 through 9 and A through F.
The reverse of this function is the ATH function.
Examples
Section titled “Examples”HTA ("A")returns the string “41”.
HTA ("ABC")returns the string “414243”.
HTA ($0123456789ABCDEF$)returns the character string “0123456789ABCDEF”.
See also
Section titled “See also”ATH function
From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF