all groups > vb.net data > november 2006 >
You're in the

vb.net data

group:

passing parameter to class from application


Re: passing parameter to class from application RobinS
11/16/2006 10:09:52 PM
vb.net data: I posted a response to this in the other newsgroup
where you posted this. This is the third group
in which you have posted this message.

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.
--------------------------
[quoted text, click to view]

passing parameter to class from application Smile
11/17/2006 2:51:21 AM
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

Re: passing parameter to class from application Smile
11/21/2006 1:00:28 AM
Thanks, Robins.

I read your reply.

Thanks again.

Smile
"RobinS" <RobinS@NoSpam.yah.none> ¼¶¼g©ó¶l¥ó·s»D:ZKCdnTLXNvGsz8DYnZ2dnUVZ_u2dnZ2d@comcast.com...
[quoted text, click to view]

AddThis Social Bookmark Button