Lasso Soft Inc. > Home

[ String_Insert ]

Method

[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
string_insert('string value',
  -position=position,
  -text='string value')
Examples
  • Beginner

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.

Code

string_insert('the brown fox jumped over the lazy dog', -position=5, -text='quick ')

Result

The quick brown fox jumped over the lazy dog

Recent Comments

No Comments found

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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft