Göran
| That is Basic Baggage. The & character once had a meaning at the end of
| a variable name. The interpreter still recognises this, but it doesn't
| work any more.
As Guy suggests whatever& still works in both .NET 1.x & .NET 2.0.
For example:
Dim whatever&
is short hand for:
Dim whatever As Long
For details see:
http://msdn2.microsoft.com/en-us/library/s9cz43ek.aspx
However I don't recommend using it, as only a very small subset of types are
supported...
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
"Göran Andersson" <gu***@guffa.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
| Brian Tkatch wrote:
| > Dick Sutton wrote:
| >> I use &= in assignment statements all the time. For example:
| >>
| >> strHTML &= MonthName(CInt(sMonth), False) & " - " & sYear &
| >> "</h3></center><br>"
| >>
| >> Hope this helps...
| >>
| >> Dick
| >>
| >> "Brian Tkatch" <Ma***********@ThePentagon.com> wrote in message
| >> news:11*********************@b68g2000cwa.googlegro ups.com...
| >>> Phill W. wrote:
| >>>> Domac wrote:
| >>>>> What is the difference between "+" and "&" operator when joining
| >>>>> strings?
| >>>> With "Option Strict On" - none at all.
| >>>>
| >>>> With "Option Strict Off" and joining only Strings - none at all.
| >>>>
| >>>> With "Option Strict Off" and joining Strings and /other/ data types -
| >>>> the effects can be "interesting" ...
| >>>>
| >>>> HTH,
| >>>> Phill W.
| >>> Except that you can do += but not &=.
| >>>
| >>> B.
| >>>
| >
| > OK, i see, my mistake. Thanks for the correction.
| >
| > I quickly tested it out by opening a module and typing:
| >
| > Sub a()
| > Dim a As String
| > a+=a
| > a&=a
| > End Sub
| >
| > The editor separated a+=a into a += a, but it separated a&=a to a& = a
| > and underlined a& as an error. Which i assumed (incorrectly) that &=
| > was not supported.
| >
| > So, perhaps a difference is whether the editor put in that space before
| > the operator. With = is does, with & it does not. Well, nothing too
| > important. :)
| >
| > Thanx for the correction.
| >
| > B.
| >
|
| That is Basic Baggage. The & character once had a meaning at the end of
| a variable name. The interpreter still recognises this, but it doesn't
| work any more.