String concatenation: Difference between revisions

no edit summary
No edit summary
Line 1,431:
s1 = s + " literal"
Console.WriteLine(s1)</lang>
 
=={{header|VBA}}==
 
<lang vb>
Option Explicit
 
Sub String_Concatenation()
Dim str1 As String, str2 As String
 
str1 = "Rosetta"
Debug.Print str1
Debug.Print str1 & " code!"
str2 = str1 & " code..."
Debug.Print str2 & " based on concatenation of : " & str1 & " and code..."
End Sub
</lang>
{{out}}
<pre>
Rosetta
Rosetta code!
Rosetta code... based on concatenation of : Rosetta and code...</pre>
 
=={{header|XPL0}}==
Anonymous user