Need to declare a class variable which is common to all objects.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Need to declare a class variable which is common to all objects.

  1. #1
    Join Date
    May 2006
    Posts
    45

    Need to declare a class variable which is common to all objects.

    Need to declare a class variable which is common to all objects.
    Hi

    I would like to declare a variable inside the class which is common to all objects. Just like shared in vb.net.
    I am working on visual basic 6.0

    Can anyone help me in this regard?

    Thks
    Vidhi

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    VB does not support that, sorry.
    If you need "global" variables, you have to add them to a .bas module (they will be shared between ALL objects)

    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

Similar Threads

  1. JDOM Classpath Help Required
    By kpandya in forum Java
    Replies: 5
    Last Post: 01-15-2006, 07:10 PM
  2. Declare Variable with Condition?
    By Michael in forum Database
    Replies: 2
    Last Post: 02-25-2003, 08:25 AM
  3. Declare a variable in ASP page for SQL statement
    By Alejandra in forum ASP.NET
    Replies: 2
    Last Post: 04-04-2002, 06:10 AM
  4. Replies: 1
    Last Post: 09-23-2001, 04:52 PM
  5. Abstract class
    By Manika in forum Java
    Replies: 1
    Last Post: 09-06-2000, 01:13 AM

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