Lasso Soft Inc. > Home

[ string->totitle ]

Method

[String->ToTitle] modifies the string object in-place by converting the specified character to titlecase. Requires a single integer parameter, which indicates the position of the character to change.

  • Syntax
'String Object'->totitle(Integer)
Examples
  • Beginner

To change the case of a single character to title case:

Use the [String->ToTitle] method. The following example converts a single character in a string object to title case, then outputs the string.

Code

local('s') = 'a quick white rhino'
#s->totitle(3)
#s

Result

a 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