By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

passing parameter to class from application

P: n/a
Hi there,

I have a question, please give me some idea. Thanks in advance!

Solution1
|
|---DBLogic (class library)
| |
| |-dblogic (class) which defines ConnString, functions to create
DataTable by sqlstr
|
|
|---DBObjects (class library)
| |
| |-dbClients
| |
| |-dbEmployees.. etc
|
|
|---UI (main application/start project)
| |
| |-Forms and UI
| |-StartForm

my questions is, the ConnString is hard-coded in the DBLogic class, with
"server = xxx; database=xxxx; uid=sa; pwd=sapass", as said by the book i am
reading,

is it possible for me to read-in a text file with the UI\StartForm, and pass
those
information to dblogic class? and howto?

i am doing that way becuase i want to modify the sa password from time to
time, so
that all i have to change is the text file after change the sa's password.

Thanks again.
Smile
Nov 16 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I posted a response to this in the other newsgroup
where you posted this.

Please don't multi-post. Cross-post instead.
This means if you are going to post something in
multiple newsgroups, post it to all of them at
one time. That way, if somebody in one group
resolves your problem, people in the other groups
know about it, and can help somebody else.

Robin S.
--------------------------
"Smile" <sm***@smile.comwrote in message
news:Om*************@TK2MSFTNGP04.phx.gbl...
Hi there,

I have a question, please give me some idea. Thanks in advance!

Solution1
|
|---DBLogic (class library)
| |
| |-dblogic (class) which defines ConnString, functions to create
DataTable by sqlstr
|
|
|---DBObjects (class library)
| |
| |-dbClients
| |
| |-dbEmployees.. etc
|
|
|---UI (main application/start project)
| |
| |-Forms and UI
| |-StartForm

my questions is, the ConnString is hard-coded in the DBLogic class, with
"server = xxx; database=xxxx; uid=sa; pwd=sapass", as said by the book i
am reading,

is it possible for me to read-in a text file with the UI\StartForm, and
pass those
information to dblogic class? and howto?

i am doing that way becuase i want to modify the sa password from time to
time, so
that all i have to change is the text file after change the sa's password.

Thanks again.
Smile


Nov 17 '06 #2

P: n/a
Thanks RobinS,

Sorry for multi-posting.
Thanks for reply.
"RobinS" <Ro****@NoSpam.yah.noneglsD:Rf********** ********************@comcast.com...
>I posted a response to this in the other newsgroup
where you posted this.

Please don't multi-post. Cross-post instead.
This means if you are going to post something in
multiple newsgroups, post it to all of them at
one time. That way, if somebody in one group
resolves your problem, people in the other groups
know about it, and can help somebody else.

Robin S.
--------------------------
"Smile" <sm***@smile.comwrote in message
news:Om*************@TK2MSFTNGP04.phx.gbl...
>Hi there,

I have a question, please give me some idea. Thanks in advance!

Solution1
|
|---DBLogic (class library)
| |
| |-dblogic (class) which defines ConnString, functions to create
DataTable by sqlstr
|
|
|---DBObjects (class library)
| |
| |-dbClients
| |
| |-dbEmployees.. etc
|
|
|---UI (main application/start project)
| |
| |-Forms and UI
| |-StartForm

my questions is, the ConnString is hard-coded in the DBLogic class, with
"server = xxx; database=xxxx; uid=sa; pwd=sapass", as said by the book i
am reading,

is it possible for me to read-in a text file with the UI\StartForm, and
pass those
information to dblogic class? and howto?

i am doing that way becuase i want to modify the sa password from time to
time, so
that all i have to change is the text file after change the sa's
password.

Thanks again.
Smile




Nov 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.