Lasso Soft Inc. > Home

[String_Insert]

[String_Insert] takes three parameters: a string, a -Text keyword/value parameter which defines the text to be inserted, and a -Position parameter which defines the offset into the string at which to insert the text. Returns a new string with the specified text inserted at the specified location.

  • Syntax
  • Parameters
[String_Insert: 'String Value',
  -Position=Position,
  -Text='String Value']
Required Parameters
String Value The string value which is to be modified.
-Text The value to be inserted into the string.
-Position The offset into the string at which to insert the text.
Examples

To insert a string into another string:

Use the [String_Insert] tag. The following example inserts the word quick into the string in between the first two words.

[String_Insert: 'The brown fox jumped over the lazy dog',
  -Position=5, -Text='quick ']
Result:
The quick brown fox jumped over the lazy dog.
Tag Link [String_Insert] 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