Lasso Soft Inc. > Home

[ String->TitleCase ]

Method

[String->TitleCase] modifies the string object in-place by converting the first character in each word of the string to uppercase and all other characters in the string to lowercase.

An optional first string parameter accepts a language code. An optional second string parameter accepts a country code. The parameters are used to create a locale that is used during the title-casing.

  • Syntax
'String Object'->titlecase
'String Object'->titlecase('Language Code')
'String Object'->titlecase('Language Code','Country Code')
Examples
  • Beginner

To change the case of a string to title case:

Use the [String->TitleCase] method. The following example outputs a sample string converted to title case.

Code

local('s') = 'The quick white rhino'
#s->titlecase
#s

Result

The Quick White Rhino

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft