Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

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
[298 byte] By [Vidhi] at [2007-11-11 8:50:22]
# 1 Re: Need to declare a class variable which is common to all objects.
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
mstraf at 2007-11-11 17:24:58 >