Using Variables in VB .NET

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
First,

I come from the old Basic days. Skipped VB5 and VB6 and went straight to VB .NET.

So knowing that, and knowing that I have been reading the dickens out of all sorts of articles, I have a this problem at hand.

I have been working on this for more than a week now and have not been able to get a grasp on the concept of using variables between classes on vb.net.

What I want to be able to do is load up a set of variables and use them in different classes.

The first scenerio is that I want to be able to load information out of the registry and save this to some variables that can be used in any class. May or may not need to change this variable in any class.

The second scenerio is that I need to load sql data (could be a file for that matter) but in this case I am loading SQL data. I need to be able to use this data through out the program. May or may not need to change this variable any in class.

What are the best ways to do this. How do most people writing OO programs handle things like Constants?

Any examples, books or websites would be greatly appreciated.

Thanks

Big T




View the full article
 
Back
Top