Results 1 to 5 of 5

Thread: Using some kind of global variables

  1. #1

    Thread Starter
    Fanatic Member jcavard's Avatar
    Join Date
    Jul 2005
    Location
    Quebec, CANADA
    Posts
    534

    Using some kind of global variables

    Hi! I need some global variables. I read there is none in VB.NET... What do you use when you have to keep track of some information from form to form?

    I'm more of a php programmer, so to give you an idea, I'd need something like the $_SESSION in php. I bet there is a way to store information to be accessible everywhere in the program... so what is the way to go? where do I write that code? thank you ince

    Jean Christophe Avard

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Using some kind of global variables

    Declare your global variables in your module.

  3. #3

    Thread Starter
    Fanatic Member jcavard's Avatar
    Join Date
    Jul 2005
    Location
    Quebec, CANADA
    Posts
    534

    Re: Using some kind of global variables

    by default, does a VB.NET project includes already a module, or I have to add one?
    thank you


    edit: that was a stupid, spontaneous and ignorant question, sorry. I found the module thing and var works fine through the form... thank you so much dude!

  4. #4
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Using some kind of global variables

    you have to add it.
    "The dark side clouds everything. Impossible to see the future is."

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Using some kind of global variables

    Add [Resolved] to the thread title.

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