Lasso Soft Inc. > Home

[ String->Append ]

Method

[String->Append] casts the parameters to strings and appends them to the string variable. Modifies the string variable and returns no value. Requires at least one string parameter.

This method should only be called on variables which contain a string value.

  • Syntax
String Variable->append('String Value')
Examples
  • Beginner

To append a value to a string variable:

Use the [String->Append] method. The following example shows a string variable named MyVariable that contains the words "The quick brown fox". The [String->Append] method is used to add the rest of the phrase and then the entire value of MyVariable is output, "The quick brown fox jumped over the lazy dog!".

Code

var('myvariable')='The quick brown fox '
$myvariable->append('jumped over the lazy dog!')
$myvariable

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