basic.convertfn Function/BASIC Program

basic.convertfn

Command basic.convertfn Function/BASIC Program
Applicable release versions: AP 6.2, R91
Category BASIC Program (486)
Description searches a given variable and replaces each occurrence of a character by another.
Any character designated in "string.expression1" is replaced with the corresponding replacement character from "string.expression2". The correspondence is by column position in "string.expression1" and "string.expression2".

If the length of "string.expression1" is shorter than the length of "string.expression2", all characters in "string.expression2" beyond the length of "string.expression1" are ignored.

If the length of "string.expression1" is longer than the length of "string.expression2", all characters in "string.expression1" beyond the length of "string.expression1" are deleted from the result.
Syntax convert(variable,string.expression1,string.expression2)
Options
Example
Purpose
Related variables
basic.string.expression
basic.statements
basic.convert
basic.exchange
basic.$options