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

10 lines
271 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04: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