RosettaCodeData/Task/Binary-strings/VBA/binary-strings-10.vba

10 lines
271 B
Plaintext

Sub Join_Strings()
Dim A$, B As String
A = "Hello"
B = "world"
Debug.Print A & " " & B 'return : Hello world
'If you're sure that A and B are Strings, you can use + instead of & :
Debug.Print A + " " + B 'return : Hello world
End Sub