String append: Difference between revisions

Content added Content deleted
(Added PureBasic)
(→‎{{header|PureBasic}}: Added example of alternate method)
Line 309: Line 309:
=={{header|PureBasic}}==
=={{header|PureBasic}}==
<lang purebasic>S$ = "Hello"
<lang purebasic>S$ = "Hello"
S$ = S$ + " Wo" ;by referencing the string twice
S$ + " World!"
S$ + "rld!" ;by referencing the string once
If OpenConsole()
If OpenConsole()
PrintN(S$)
PrintN(S$)