The string data type represents character data.
Strings are the most common data type in Lasso. They are used for the return values from the [Field] tag, [Action_Param] tag, and others. Even if a field or action parameter contains a numeric value it is still returned as a string.
Strings can be manipulated using a number of symbols. The symbols work analogously to their mathematical counterparts. + for string concatenation, - to delete a substring, and * to repeat a string. The >> contains tag can be used to check whether a string contains a substring.
Strings can be manipulated using the string member tags such as [String->Split], [String->Replace], etc. as well as with the clasic string tags [String_Concatenate], [String_IsUpper], etc.
A string can be treated as an array of characters using the [String->Size] and [String->Get] tags.
[Variable: 'myString' = 'A string']
[Variable: 'myString' = (String: 1)]
[Variable: 'myString' = (String: 3.14159)]
See the Lasso 8 Language Guide for examples of how to use this tag.
Tag Link | String | Category | Data Type |
---|---|---|---|
Type | Data Type | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | Security | ||
Implementation | Internal | Sets | 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