Name
StrConv Function
Class
Microsoft.VisualBasic.Strings
Syntax
StrConv(str, conversion[,localeID])
-
str(required; String) The string expression to convert
-
conversion(required; Constant of theVbStrConvenumeration) One of the constants listed in Section
-
localeID(optional; Integer) The locale identifier to use for the conversion
Return Value
A String converted according to conversion
Description
Performs special conversions on a string
Rules at a Glance
The following intrinsic conversion constants specify the type of conversion to perform:
|
Constant |
Converts... |
|---|---|
VbStrConv.UpperCase |
The entire string to uppercase. |
VbStrConv.LowerCase |
The entire string to lowercase. |
VbStrConv.ProperCase |
The first letter of every word in |
VbStrConv.Wide |
Narrow (single-byte) characters in |
VbStrConv.Narrow |
Wide (double-byte) characters in |
VbStrConv.Katakana |
Hiragana characters in |
VbStrConv.Hiragana |
Katakana characters in |
VbStrConv.LinguisticCasing |
Uses linguistic rules for casing. Can be used only with
|
VbStrConv.None |
Performs no conversion on |
VbStrConv.SimplifiedChinese |
Traditional Chinese characters in |
VbStrConv.TraditionalChinese |
Simplified Chinese characters in |
You can combine some of these constants by adding them together or ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access