Declaring public variable

Discussion in 'Visual Basic ( VB )' started by pardeep3dec, Aug 25, 2008.

  1. pardeep3dec

    pardeep3dec New Member

    Joined:
    Aug 25, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software Developer
    Location:
    Delhi
    Hi Friends,
    Please tell me the process of declaring variable which can be used from any form of a project in vb 6.0
     
  2. mbshinde78

    mbshinde78 New Member

    Joined:
    Sep 9, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    It is easy.

    Add a global module into your project from the file menu. Then declare a public variable with whatever data type you wish.

    That variable will be accessible to you from anywhere within the project
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice