To set up a static member, you will want to have it in a module. This may
not be what you are aiming at. For application, consider setting up a
singleton as you application object. If the values are app wide, you can
also make them static (Shared keyword in VB.NET).
To go across programs, you will have to make a service, set up the value in
some form of persistant storage, or have a means of passing the value across
multiple apps.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Trint Smith" <tr********@hotmail.com> wrote in message
news:OT*************@TK2MSFTNGP12.phx.gbl...
I did have UserID as 'Dim UserID As String'. Ok, when I made it 'Public
UserID As String', in the Public Area of one program and took out all
the 'local' declairations of it, even in the other programs that need to
see the same value of UserID, UserID was getting the 'UserID is not
declaired' message in the other programs. Do I have to put 'Public
UserID As String' in the Public areas of all my programs, and if I do a
UserID = "something" in one program, will it still have that value in
the other programs? Or is there a better way?
Thanks,
Trint
Net programmer
tr********@hotmail.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!