we may be thinking of different things but I use Public
We may be a cross-purposes.
You can define variables as Public, in which case they can be accessed across different classes and modules.
What you are calling a variable still has to be accessed through a object.
In VB when you use a Module which is just a shared class it uses Type Promotion to promote the members to namespace scope, but create a class with the same name and you have to type module name.
The only declarations allowed at namespace level are module, interface, class, delegate, enumeration, and structure declarations.
We are sort of getting away from the point. Thanks anyway.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.