What happened with module variables?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • juan

    #1

    What happened with module variables?

    I have a web project of Visual Basic 2005. I want to create a variable for
    all the project (in a module, like in Visual Basic 2003). But I think I must
    create them in another element diferent than a module. Is it true?
    Regards, John.

  • Patrice

    #2
    Re: What happened with module variables?

    What have you tried that doesn't work ? A module should work. Else a class
    with a shared member is likely more in the current mood (this is actually
    AFAIK how modules are implemented in VB.NET).

    Keep in mind thought that this will hold the same value for the whole
    application. For a web application, it means also all users. Make sure this
    is what you want...

    --

    "juan" <juan@discussio ns.microsoft.co m> a écrit dans le message de news:
    9102AEC4-D167-41D1-B3DB-D629237AA174@mi crosoft.com...[color=blue]
    >I have a web project of Visual Basic 2005. I want to create a variable for
    > all the project (in a module, like in Visual Basic 2003). But I think I
    > must
    > create them in another element diferent than a module. Is it true?
    > Regards, John.
    >[/color]


    Comment

    Working...