DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links