Results 1 to 6 of 6

Thread: [RESOLVED] Public variable in standalone exe

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    [RESOLVED] Public variable in standalone exe

    I have a standalone executable that will connect to a database and perform various operations and immediately release the connection. At the beginning of the application at want to prompt the user for userid, password, database etc. and build a connect string that I want all class modules to share. In VB6 I would have used a public variable to store the connect string.
    How do I achieve the same behaviour in VB.NET?

    I've read things about singletones etc. but that would imply that I'd have to store the string in a file and pick it up each time I need it isn't it ?

    Thanks
    Last edited by Mr.No; Dec 27th, 2002 at 02:44 PM.
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width