|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
VB.NET string concatenation operator
Is it completely legal to use plus sign (+) as the string concat operator in vb.net? IIRC in VB the & sign must be used.
so if I do this in vb.net: Code:
Dim a As String = "100" Dim b As String = "25" b = b + a 'b += a it will be the same as: Code:
b = b & a 'b &= a oh Shiznit, I really hated the & as concat op but I didn't know they allowed the plus sign in vb.net, so I've been using & all along ![]() |
|
#2
|
||||
|
||||
|
well if it's any use according to the sams vb .net 2003 in 24 hours i'm working through you should stick to & since + might yield incorrect results when you don't use Option Strict
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > VB.NET string concatenation operator |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|