STRCONV( ) Function

See Also

Converts character expressions between single-byte, double-byte, UNICODE, and locale-specific representations.

Syntax

STRCONV(cExpression, nConversionSetting [, nLocaleID])

Returns

Character

Arguments

cExpression

Specifies the character expression that STRCONV( ) converts.

nConversionSetting

Specifies the type of conversion. The following table lists the values of nConversionSetting and the type of conversion performed.

nConversionSetting Conversion
1 Converts single-byte characters in cExpression to double-byte characters.
2 Converts double-byte characters in cExpression to single-byte characters.
3 Converts double-byte Katakana characters in cExpression to double-byte Hiragana characters.
4 Converts double-byte Hiragana characters in cExpression to double-byte Katakana characters.
5 Converts double-byte characters to UNICODE (wide characters).
6 Converts UNICODE (wide characters) to double-byte characters.
7 Converts cExpression to locale-specific lowercase.
8 Converts cExpression to locale-specific uppercase.

nLocaleID

Specifies the Locale ID to use for the conversion. If nLocaleID is invalid or not supported on the machine, the error "Invalid locale ID" is generated. If nLocaleID is omitted, the system locale ID is used by default.

Remarks

This function is useful for manipulating double-byte character sets for languages such as Hiragana and Katakana.