[String->Trim] removes all white space from the start and end of the string. Modifies the string in place and returns no value.
All spaces, return characters, new lines, and tabs are removed from both the start and end of the string.
[String Variable->(Trim)]
Use the [String->Trim] tag. The following example shows how to trim extra white space from the beginning and end of a value returned by [Action_Param: 'First_Name']. The variable First_Name will contain the same value, but without any extraneous spaces or return characters.
[Var: 'First_Name'=(Action_Param: 'First_Name')]
[(Var:'First_Name')->(Trim)]
<br>"[Action_Param: 'First_Name']"
<br>"[Var:'First_Name']"
<br>" John "
<br>"John"
Tag Link | [String->Trim] | Category | String |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | None (Modifies in place) | Security | None |
Implementation | Sets | 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