<div class="meta" robots="noindex">

</div>

Method

# Titlecase

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `String.Titlecase<string.titlecase>` as a replacement.

</div>

## Description

Returns the `string</api/data_types/string>` passed to it with all alphabetic characters in <span class="title-ref">Titlecase</span>.

## Usage

*result*=*sourceVariable*.**Titlecase**

| Part           | Type                             | Description                                                                                |
|----------------|----------------------------------|--------------------------------------------------------------------------------------------|
| result         | `String</api/data_types/string>` | A copy of the original string with all characters converted to their titlecase equivalent. |
| sourceVariable | `String</api/data_types/string>` | The original string.                                                                       |

## Notes

Converts all characters in a `string</api/data_types/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

``` xojo
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<string.lowercase>`, `Uppercase<string.uppercase>` functions.
