Lasso Soft Inc. > Home

[String->Merge]

[String->Merge] modifies the base string in-place by merging or inserting another string at a specified location. This tag requires two parameters and accepts several optional parameters.

The first parameter is the location in the base string at which to insert the merge string. A 1 specifies that the merge string should be inserted before the base string.

The second parameter is the string to merge.

An optional third parameter specifies an offset into the merge string. Only characters after the specified offset will be inserted into the base string. This parameter defaults to 1.

An optional fourth parameter specifies the number of characters from the merge string that should be inserted into the base string. This parameter defaults to the length of the merge string.

No characters from the base string will be replaced. The merge string will be inserted into the base string at the specified location, but the base string will remain intact before and after the merged string.

  • Syntax
  • Parameters
[Variable: 'myString' = 'String Value']
[$myString->(Merge: Offset, 'Merge String']
[Variable: 'myString']

[$myString->(Merage: Offset, 'Merge String', Offset, Length)]
Required Parameters
Position The position at which the string should be merged into the base string.
Merge Value The string which is to be merged into the base string.
Optional Parameters
Offset Optional offset into the merge string specifies what characters to insert.
Length Optional length specifies how many characters of the merge string to insert.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag. This tag is documented on page 286.

Tag Link [String->Merge] Category String
Type Member Data Source Any
Support Preferred Version 6.0
Output Type None Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.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