Lasso Soft Inc. > Home

[String->ToLower]

[String->ToLower] modifies the base string in-place by converting a specified character in the string to lowercase. Requires a single parameter, which indicates the position of the character to change.

  • Syntax
  • Parameters
[Variable: 'myString' = 'String Value']
[$myString->(ToLower)]
[Variable: 'myString']

<?LassoScript
Variable: 'myString' = 'String Value';
$myString->(ToLower: Integer)]
Output: $myString;
?>
Required Parameters
String The string to be modified.
Integer The position of the character to be modified. The first character in the base string is 1.
Examples

To change the case of a string to lower case:

Use the [String->ToLower] tag. The following example outputs a sample string with the first letter converted to lower case.

[Variable: 'myString' = 'A quick brown fox']
[$myString->(ToLower: 1)]
[Output: $myString]
Result:
a quick brown fox
Tag Link [String->ToLower] Category String
Type Member Data Source Any
Support Preferred Version 7.0
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

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