[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.
'String Object'->titlecase
'String Object'->titlecase('Language Code')
'String Object'->titlecase('Language Code','Country Code')
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
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments