DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: diff between GLOBAL and PUBLIC variables

Hybrid View

  1. #1
    rich Guest

    diff between GLOBAL and PUBLIC variables


    i want to place a variable in the declaration section in my bas module so
    that i can access the value throughout my application. what is the best
    approach declaring the variable, GLOBAL or PUBLIC? thanks in advance.

  2. #2
    Karl E. Peterson Guest

    Re: diff between GLOBAL and PUBLIC variables

    "rich" <rperez@teleteam.net> wrote in message news:3af309a3$1@news.devx.com...
    >
    > i want to place a variable in the declaration section in my bas module so
    > that i can access the value throughout my application. what is the best
    > approach declaring the variable, GLOBAL or PUBLIC? thanks in advance.


    Nothing. Global was the keyword used before Public was introduced (with VB4).
    --
    http://www.mvps.org/vb



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center