Cheers guys, very helpful.
On Sun, Jun 6, 2010 at 8:19 PM, Greg Keogh wrote:
> Aha! Here’s the statement that sums it all up with legal clarity:
>
>
>
> http://msdn.microsoft.com/en-us/library/7825002w(v=VS.80).aspx
>
> *This means that variables in a standard module are effectively global
> va
+1
On Mon, Jun 7, 2010 at 9:03 AM, David Connors wrote:
> Howdy,
>
> Each year there is a group discount available for members of usergroups
> attending TE.
>
> acoat tells me that we can be included in the same discount regime.
>
> Is there any interest from list members for a discount ticket
Howdy,
Each year there is a group discount available for members of usergroups
attending TE.
acoat tells me that we can be included in the same discount regime.
Is there any interest from list members for a discount ticket to TE 2010 *w*
*here you were previously not eligible because you are not
Aha! Here's the statement that sums it all up with legal clarity:
http://msdn.microsoft.com/en-us/library/7825002w(v=VS.80).aspx
This means that variables in a standard module are effectively global
variables because they are visible from anywhere in your project, and they
exist for the life o
Chaps, I think we've answered Tom's question in a way, eventually, I hope.
He was suspicious of using Modules, and you've confirmed my suspicions that
Modules are aliases for static classes that don't need to be qualified. No
other .NET compliant language I know of hides what's going on underneath
It is interesting to read the VB Reference (MSDN or VB Developer Center) on
the Class and the Module statements.
Class: http://msdn.microsoft.com/en-US/library/wa0hwf23(v=VS.80).aspx
Module: http://msdn.microsoft.com/en-us/library/aaxss7da(v=VS.80).aspx
In particular, there is a small section
Hi Greg, Ian, all
As Ian says a Module is a Shared class. In C# a similar concept is a
"static class" which I think they introduced in Visual C# 2005 or maybe it
was 2008. VB's implementation is basically the same but there is also an
implicit namespace import inside a project such that the modu
Greg
Over the years, there have been some discussions on this, eg Joel Spolksky
at http://tinyurl.com/26x7xg5 - and Microsoft does have some words in
several places (I haven't chased them up).
Erik Meier's explanations might be worth looking for.
The joelonsoftware discussion is from 2006, and
Hi Tom, is it quiet in here or is my email on the fritz?
"Modules" were weird and unclear abstractions in the old VB days that
irritated and confused me. They still do, so whenever I make a new VB
project I delete the Module and I create classes. I'm probably biased here
because I come from a C