HTA() Function - Hexadecimal to ASCII

Syntax

HTA(string{,ERR=lineref})

Description

The HTA() function converts a hexadecimal string to a human-readable ASCII string. The result is always twice the length of the argument.

Parameter

Description

string

Hexadecimal string to be converted to ASCII.

ERR=lineref

Branch to be taken if an error occurs during execution.

The ATH() function is the complementary function to HTA(); ATH(HTA(X$)) returns X$.

Examples

>PRINT HTA("ABC")
414243
>PRINT HTA("123")
313233
>PRINT HTA($010203$)
010203
1000 A$=HTA(B$,ERR=9500)

See Also

Functions - Alphabetical Listing