System Functions

RDX( )

Convert ASCII to Radix-40

Format

RDX(ascii$[,ERR=stmtref])

Where:

ascii$

Character string containing ASCII data. String expression.

stmtref

Program line number or statement label to which to transfer control.

Returns

Radix-40 equivalent of given ASCII string.

Description

The RDX( ) function is used to convert data from normal ASCII to Radix-40. Conversion to Radix-40 compresses three characters (any of 0-9, A-Z, ., -, $, or space) into two bytes of data (16 bits).

To convert data back to ASCII, use the inverse function TRX( ).

See Also

TRX( ) Convert Radix-40 to ASCII

Example

A$=lst(pgm(65000));
print "string: ",quo,A$,quo
print hta(A$)
print hta(rdx(A$))

->run
string: "65000 END "
363530303020454E4420
2CB106686E600000