This is safer to use, and since you make your intent clear to the compiler (I want to combine these two values, and they both need to be converted to strings).
Using + can make it difficult to find errors if the strings are numeric values, at least if the strict parameter is disabled.
For example:
1 + "1" = 2 ' this fails if option strict is on 1 & "1" = 11
Edit: although if you are concatenating a non-string, you should probably use some better method.
Hans Olsson Jun 09 '10 at 13:25 2010-06-09 13:25
source share