basic.exchange

Function/BASIC Program, Releases: AP 6.2 and R91

converts characters

Syntax

exchange(string.expression1, string.expression2, string.expression3)

Description

converts characters in string.expression1.

This function works identically to the 'convert' function except that the second two arguments are specified as hexadecimal numbers.

Example

print exchange('abc',dtx(seq('a')),dtx(seq('b')))

The result, 'bbc', will be printed to the terminal.

See Also

Command Name Type Description
basic.convertfn Function Converts characters.
basic.$options Statement Sets compatibility options for the BASIC compiler.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.