Lasso Soft Inc. > Home

[String->Trim]

[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.

  • Syntax
  • Parameters
[String Variable->(Trim)]
Required Parameters
String Variable The base string which is to be modified.
Examples

To trim extra white space from user input:

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']"
Result:
<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 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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft