[String] append: [String]. | Manual

[String] append: [String].

Appends the specified string to itself. This is different from the '+' message, the '+' message adds the specified string while creating a new string. Appends on the other hand modifies the original string.

 x := 'Hello '.
 x append: 'World'.
 Pen write: x. #Hello World

 Instead of using the append message you may also use its short form,
 like this:

 x +=: 'World'.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.