Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42231

How to Share a Boatload of Variables with the Whole Project

$
0
0
I'm working on a VB.NET project which will assign about 50 variables from reading data out of a text file. I will need to share all of the variables with several different modules and/or classes. To be honest I don't know yet what is the difference between a class and a module. I need more studying on that. But as usual, why spend time to learn something when you can just start bulldoggin through the code....:D

So given that once I read these variables in from the file, what's the best advice for sharing them with the whole project. Will making the Module in which these variables are assigned Public be sufficient. And is having what amounts to 50 global variables a good idea or should I keep everything in the same class? The project won't be War and Peace in length but it will get rather lengthy with all the different tasks I will need it to do. That is why I am looking at breaking it up into modules.

Viewing all articles
Browse latest Browse all 42231

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>