Lasso Soft Inc. > Home

[String_Remove]

[String_Remove] takes three parameters: a string, a -StartPosition keyword/value parameter, and a -EndPosition keyword/value parameter. Returns the string with the substring from -StartPosition to -EndPosition removed.

  • Syntax
  • Parameters
[String_Remove: 'String Value',
  -StartPosition=Position,
  -EndPosition=Position]
Required Parameters
String Value The string value which is to be modified.
-StartPosition The starting index of the portion of the string to be removed.
-EndPosition The ending index of the portion of the string to be removed.
Optional Parameters
Encoding Keyword Specifies the encoding for the tag's return value. Tags are encoded using -EncodeHTML by default if their value is output on a format file. No encoding is applied to nested tags unless an explicity encoding keyword is specified. One of -EncodeBreak, -EncodeHTML, -EncodeNone, -EncodeRaw, -EncodeSmart, -EncodeStrictURL, -EncodeURL, -EncodeXML.
Examples

To remove a portion of a string:

Use the [String_Remove] tag. The following example removes five characters from the string, starting at position 5, and returns the resulting string.

[String_Remove: 'String Value', -StartPosition=5, -EndPosition=9]
Result:
Strilue
Tag Link [String_Remove] Category String
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type String Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x,LDML25

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