Replaces each character in a character expression that matches a character in a second character expression with the corresponding character in a third character expression.
CHRTRANC(cSearched, cSearchFor, cReplacement)
- Specifies the expression in which CHRTRANC(В ) replaces characters.
- Specifies the expression containing the characters CHRTRANC(В ) looks for in cSearched.
- Specifies the expression containing the replacement characters. If a character in cSearchFor is found in cSearched, the character in cSearched is replaced by a character from cReplacement that's in the same position in cReplacement as the respective character in cSearchFor. If cReplacement has fewer characters than cSearchFor, the additional characters in cSearchFor are deleted from cSearched. If cReplacement has more characters than cSearchFor, the additional characters in cReplacement are ignored.
CHRTRANC(В ) is designed to facilitate working with expressions that contain double-byte characters. Use CHRTRANC(В ) to replace single-byte characters with double-byte characters or double-byte characters with single-byte characters. If the expressions contains only single-byte characters, CHRTRANC(В ) is equivalent to CHRTRAN(В ) .
This function is useful for manipulating double-byte character sets for languages such as Hiragana and Katakana.