[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].
['Base String'->Size]
[Variable: 'myString' = 'A string']
[Loop: $myString->Size]
...
[/Loop]
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!
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 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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft