Lasso Soft Inc. > Home

[String->RemoveTrailing]

[String->RemoveTrailing] removes all instances of the parameter from the end of the string. Modifies the string and returns no value. Requires a single string parameter. The pattern is not case sensitive.

  • Syntax
  • Parameters
[String Variable->(RemoveTrailing: 'String Pattern')]
Required Parameters
String Variable The base string which is to be modified.
String Pattern The character which should be removed from the end of the string.
Examples

To remove extra carriage returns from the end of a string:

Use the [String->RemoveTrailing] tag. The following example removes extra carriage returns from a variable Description that is set to the value of a field by the same name.

[Var: 'Description'=(Field: 'Description')]
[(Var:'Desription')->(RemoveTrailing: ' ')]
Tag Link [String->RemoveTrailing] Category String
Type Member Data Source Any
Support Preferred Version 5.0
Output Type None (Modifies in place) Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, 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