[String->Get] returns a specific character from the string. Requires a single integer parameter.
[String Variable->(Get: Character Index)]
Use the [String->Get] tag. The following example fetches each character of a string individually and displays them on separate lines.
[Variable: 'theString' = 'Blue World']
[Loop: $theString->Length]
<br>[Output: $theString->(Get: Loop_Count)]
[/Loop]
<br>B
<br>l
<br>u
<br>e
<br>
<br>W
<br>o
<br>r
<br>l
<br>d
Tag Link | [String->Get] | Category | String |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | String (Character) | Security | None |
Implementation | LCAPI | Sets | Lasso 7.0, Lasso 6.0, Lasso 5.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