StrConv$ Function
Syntax:
StrConv[$](Str,Conv)
Group:
String
Description:
Convert the string.
Parameter
Description
Str Convert
this string value. If this value is Null then
Null is returned.
Conv This
numeric value indicates the type of conversion. See conversion table below.
Conv
Value Effect
- bUpperCase 1 Convert to upper case.
- bLowerCase 2 Convert to lower case.
- bProperCase 3 Convert to proper case. (Not supported.)
- bWide 4 Convert to wide. (Only supported for Win32
in eastern locales.)
- bNarrow 8 Convert to narrow. (Only supported for
Win32 in eastern locales.)
- bKatakana 16 Convert to Katakana. (Only supported
for Win32 in Japanese locales.)
- bHiragana 32 Convert to Hiragana. (Only supported
for Win32 in Japanese locales.)
- bUnicode 64 Convert to Unicode. (Only supported for
Win32.)
- bFromUnicode 128 Convert from Unicode. (Only supported
for Win32.)
See Also: LCase$(
), StrComp( ), UCase$(
).
Example:
Sub Main
Dim B(1 To 3) As Byte
B(1) = 65
B(2) = 66
B(3) = 67
Debug.Print StrConv$(B,vbUnicode) '"ABC"
End Sub