Generates a string concatenation of two expressions.
result = expression1 & expression2
If the data type of expression1 or expression2 is not String but widens to String, it is converted to String. If one of the data types does not widen to String, the compiler generates an error.
The data type of result is String. If one or both expressions are stated as Nothing or have a value of DBNull.value, they are treated as a string with a value of "".
This example uses the & operator to force string concatenation. The result is a string value representing the concatenation of the two string operands.
Dim myStr As String
myStr = "Hello" & " World" ' Returns "Hello World".
&= Operator | Concatenation Operators | Operator Precedence in Visual Basic | Operators Listed by Functionality