cyberbiker
Programmer
First off, I did not do this. I may be goofy, but....
We have a ridiculous problem in an existing program.
We have a public variable declared in a module as database
In numerous places throughout the application, a module level variable is declared with the same name (also as database)
As far as I can tell at any given time the program is looking for the same ACCESS data base either way, but this app has had a history of "strange" problems. I have no way to be certain of what error messages have been generated over time.
My basic question is whether the module level variable overides the public or vice versa if any one knows.
It is almost a moot point, since I am working on fixing this now (along with other changes), but an answer might help me understand a bit better what has been going on.
The app gets the full path to the ACCESS database fom an *.ini file regardless.
Would having 2 defined variables be creating 2 connections to the ACCESS database?
My change will be to using MSDE and SQL server 7 tables through an ODBC connection so I will be changing quite a bit anyway.
Before anybody suggests being sensible and using ADO, that is not an option Terry (cyberbiker)
We have a ridiculous problem in an existing program.
We have a public variable declared in a module as database
In numerous places throughout the application, a module level variable is declared with the same name (also as database)
As far as I can tell at any given time the program is looking for the same ACCESS data base either way, but this app has had a history of "strange" problems. I have no way to be certain of what error messages have been generated over time.
My basic question is whether the module level variable overides the public or vice versa if any one knows.
It is almost a moot point, since I am working on fixing this now (along with other changes), but an answer might help me understand a bit better what has been going on.
The app gets the full path to the ACCESS database fom an *.ini file regardless.
Would having 2 defined variables be creating 2 connections to the ACCESS database?
My change will be to using MSDE and SQL server 7 tables through an ODBC connection so I will be changing quite a bit anyway.
Before anybody suggests being sensible and using ADO, that is not an option Terry (cyberbiker)