O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

StrConv Function

Class

Microsoft.VisualBasic.Strings

Syntax

StrConv(str, conversion[, localeID])
str (required; String)

The string expression to convert

conversion (required; Constant of the VbStrConv enumeration)

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 str to an uppercase character.

VbStrConv.Wide

Narrow (single-byte) characters in str to wide (double-byte) characters.

VbStrConv.Narrow

Wide (double-byte) characters in str to narrow (single-byte) characters.

VbStrConv.Katakana

Hiragana characters in str to Katakana characters.

VbStrConv.Hiragana

Katakana characters in str to Hiragana characters.

VbStrConv.LinguisticCasing

Uses linguistic rules for casing. Can be used only with UpperCase and LowerCase.

VbStrConv.None

Performs no conversion on str.

VbStrConv.SimplifiedChinese

Traditional Chinese characters in str to Simplified Chinese.

VbStrConv.TraditionalChinese

Simplified Chinese characters in str to Traditional Chinese.

  • You can combine some of these constants by adding them together or ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required