How to Concatenate a String Value in VBScript
To concatenate string values using VBScript we use the ampersand (&) character to piece together our composite string value.
Code Example:
Srting1 = "Word 1"
String2 = "Word 2"
String3 = String1 & String2
or
String3 = "Word 1" & "Word 2"
msgbox(String3)
The output value would be “Word 1 Word 2”.
If you’re more familiar with JavaScript, you might be used to concatenating strings using the plus character (+).
In VBScript you can only use the + operator on numeric values.