| CONVERT | Index Level | COS |
| Syntax | CONVERT( variable, string.expression1, string.expression2 ) |
| Category | BASIC |
| Type | Function |
| 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. |
| Options | |
| See Also | variables string.expression statements & functions CONVERT EXCHANGE $OPTIONS |
| Example | |
| Warnings | It is necessary to use a non-default compiler option setting to use this function. Inserting the line "$options ext" at the beginning of the source code accomplishes this. |
| Compatibility | D3 7.0 R91 |
| CONVERT | Index Level | COS |