Method

Titlecase


Warning

This item was deprecated in version 2019r2. Please use String.Titlecase as a replacement.

Description

Returns the string passed to it with all alphabetic characters in Titlecase.

Usage

result=sourceVariable.Titlecase

Part

Type

Description

result

String

A copy of the original string with all characters converted to their titlecase equivalent.

sourceVariable

String

The original string.

Notes

Converts all characters in a string to lowercase characters and then converts the first character of each word to uppercase. Numbers are not affected.

Sample code

The example below converts the values passed to Titlecase

Var result As String
Var source As String = "tHe Quick fOX"
result = source.Titlecase ' returns "The Quick Fox"
source = "THE LAZY DOG"
result = source.Titlecase ' returns "The Lazy Dog"

Compatibility

All project types on all supported operating systems.

See also

Lowercase, Uppercase functions.