Results 1 to 4 of 4

Thread: Global Variables

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    19

    Global Variables

    Can we possibly declare variables as Global that every page on the project could use? How? thanks

  2. #2
    Junior Member
    Join Date
    Jul 2003
    Location
    Ireland
    Posts
    22
    use the Public keyword
    "A child of five could understand this. Fetch me a child of five." Groucho Marx

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    19
    thanks,

    I guess declaring public doesn't work on our project. I used "session" instead and it works.

  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    I can't imagine any reason why "Public" would not work, provided you make the declaration in the right place, which is in the general section of the form or module.

    I hope you are not trying to make a public declaration within a Sub!!!!! (Which is where you could use "Session" but that might give you other problems.)
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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