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

10 lines
271 B
Text
Raw Permalink Normal View History

2018-06-22 20:57:24 +00:00
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