Lasso Soft Inc. > Home

[String->Size]

[String->Size] returns the number of characters that are in a string variable. It is equivalent to [String_Length] and is similar to [Array->Size] or [Map->Size].

  • Syntax
  • Parameters
['Base String'->Size]

[Variable: 'myString' = 'A string']
[Loop: $myString->Size]
  ...
[/Loop]
Required Parameters
String The string to be inspected.
Examples

To report the size of a string:

Use the [String->Size] tag. The following example reports how long a sample string is.

[Variable: 'myString' = 'A quick brown fox']
The string is [$myString->(Size)] characters long!
Result:
The string is 17 characters long!
Tag Link [String->Size] Category String
Type Member Data Source Any
Support Preferred Version 6.0
Output Type Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.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