Re: Centralised MsgBox
- From: "Scott M." <s-mar@xxxxxxxxxxxxx>
- Date: Wed, 7 Oct 2009 17:28:00 -0400
"Tom Shelton" <tom_shelton@xxxxxxxxxxxxxxxxxx> wrote in message
news:OvGgnJ5RKHA.5052@xxxxxxxxxxxxxxxxxxxxxxx
On 2009-10-07, Scott M. <s-mar@xxxxxxxxxxxxx> wrote:
Yes, seriously Tom.
The first thing any classic VB developer should learn about VB .NET is
that
it isn't VB 6 and as such, they are going to have to change their coding
mentality to get the most from .NET.
But using Call does no harm.
But it provides no help either. And, since that leaves no benefit to using
it, it's not encouraged, it's discouraged.
As someone who has trained literally thousands of people on .NET since
its
inception (and a good chunk of those being classic VB developers), I can
tell you that IMHO not only is the continued use of "Call" not something
that is taught, but rather it is something that is actively discouraged
(along with all the other legacy VB stuff).
Not sure why you would actively discourage it really. It does no harm to
use
it, and in fact some might say it makes the code more self documenting -
because you have made your intention that you are not dealing with a
return
value explicit...
Some might argue that (I suppose you are), but the counter argument is that
since nothing is being set to the reutrn value, the return value isn't being
used.
Foo()
Dim result As Boolean = Foo()
It's very obvious which of these statements is using the return value and
which isn't. Call neither hurts or helps the interpretation of this code
and that leaves it as not useful and why would any code that is not useful
be advocated?
Anyway - the point remains, you can not guess that a code snip-it using
call is VB6 code - especially when that code snipit is 100% valid in
either
language - simply by the fact that it contains that keyword. All your
attempts at redirection and appeals to your supposed authority do not
change
that simple fact.
As I've said, sine the reality is that "Call" is NOT found in the majoity of
..NET code out there, it is reasonable to assume that VB 6 is what's being
discussed when you see a snippet like that.
I get that you and I disagree on this, but in my experience, it's a
reasonable assumption.
What is really disheartening is that others have taken this simple assertion
of mine and felt that it is justification to unload all their pent up hate
on me for no reason whatsoever.
There are so many children in this NG that haven't found a way to express
their disagreement like you have Tom. They do it with personal insults and
assertions about me based on absolutely no facts whatsoever. Maybe they are
practicing for their interview with FOX TV.
-Scott
.
- Follow-Ups:
- Re: Centralised MsgBox
- From: Kevin Provance
- Re: Centralised MsgBox
- References:
- Centralised MsgBox
- From: Nigel V Thomas
- Re: Centralised MsgBox
- From: Nobody
- Re: Centralised MsgBox
- From: Scott M.
- Re: Centralised MsgBox
- From: Nobody
- Re: Centralised MsgBox
- From: Scott M.
- Re: Centralised MsgBox
- From: Tom Shelton
- Re: Centralised MsgBox
- From: Scott M.
- Re: Centralised MsgBox
- From: Tom Shelton
- Re: Centralised MsgBox
- From: Scott M.
- Re: Centralised MsgBox
- From: Tom Shelton
- Re: Centralised MsgBox
- From: Scott M.
- Re: Centralised MsgBox
- From: Tom Shelton
- Centralised MsgBox
- Prev by Date: Re: Centralised MsgBox
- Next by Date: Re: Centralised MsgBox
- Previous by thread: Re: Centralised MsgBox
- Next by thread: Re: Centralised MsgBox
- Index(es):
Relevant Pages
|