Static class membervariables?
This also won't work if you create objects of class using different clients.
VB's appartment threading duplicates data for every apartment (MSDN).
I posted same question. But it lloks like it's not possible using basic lang
only. So u need to go for API to achieve that.
>Not really. A workaround is to compile your class in an ActiveX
>DLL, and use a global, module-level variable as your counter.
>You can do this without making a DLL, but in a DLL, the global
>counter is encapsulated better.
>Raffles Software Development, Inc.
>Patient - Doctor, it hurts when I do this!
>Doctor - Then don't do that.
>>Within C++ it is possible to declare static membervariables in a class.
>>The effect is that its value is shared among all instances of the class.
>>This feature can for example be used to give each instance of the class
>>an unique ID. Just declare a static (private) long within the class, and
>>increment it each time an instance of the class is created.
>>I need this (an unique id for each instance of the class) in a VB class.
>>Is this possible?
>>Thanks for any suggestions,