Tiago
Sat Aug 19 09:41:02 CDT 2006
A simple way to do that is using My.Settings ...
Go to Project > Properties ... > Settings and add a setting name (i.e. =
db_path and set a Type for it)
Then, in your application, u can read it and write it using:
Read: Msgbox ( My.Settings.db_path.ToString )
Write: My.Settings.db_path =3D "anything"
-- =
Tiago Salgado
Blog:
http://weblogs.pontonetpt.com/tiagosalgado
On Sat, 19 Aug 2006 13:51:24 +0100, John <John@nospam.infovis.co.uk> wro=
te:
> Hi
>
> For my db app, I need to save the location of the db (really a windows=
=
> path)
> which normally only needs to be set at the first app start (I can chec=
k =
> if
> the setting is missing and ask user for a value). Occasionally (once i=
n a
> blue moon) I may need to change this setting in case db is moved to a
> different server etc.
>
> My question is what sort of mechanism can/should I use to store this
> setting?
>
> Thanks
>
> Regards
>
>