dakota97 Posted January 9, 2004 Posted January 9, 2004 Hi all, Ok, I'm having trouble figuring out how to create an application wide connection to my database. I tried creating a module, and having it be the first object loaded when the program starts. The problem that I'm having is that I've declared the connection in the module, but when I attempt to use it on a form, it says that the connection hasn't been declared. What can I do? Thanks in advance, Chris Quote if(computer.speed == "slow") { hamster.feed(); } if(computer.speed == "really slow") { hamster.kill(); BuyNewHamster(); }
Moderators Robby Posted January 9, 2004 Moderators Posted January 9, 2004 Instead of a module create a class with a readonly property that returns the string. Then at the top of any other class that may need this connection string instantiate the con class and retrieve the property as needed. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.