Re: VB6.0 and Constructors



I found the solution!

I need to use the 'set' keyword in the 'get' property,

thanks

Henk

"Henk van Winkoop" <h.van.winkoop@xxxxxx> schreef in bericht
news:44f2d38c$0$2029$ba620dc5@xxxxxxxxxxxxxxxxxxxxxx
He great!

thanks,

just another question:

My mainprogram creates a classobject A and then calls a classobject
A.function which itself creates some object B.
The object B is stored in a global class variable.

Is it possible to use that class-generated object B in my mainprogram?

Using the 'Get' property results in some compile error.


regards,

Henk


"Duane Arnold" <"Do forget about it"@PleaeDo.BET> schreef in bericht
news:FT6Ig.1763$xQ1.419@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Henk van Winkoop wrote:
Hello,

I'm used to work with C++ and classes.
If a class is created the corresponding constructor is called.

For my boss I'm working on a VB6 project.

My question is: is there some kind of 'Constructor' with
VB6 classes?

I surfed the Internet but what I found was totally 'abracadabra' to me.

I simple example (if existing) would make me very glad.

Regards,


Class_Initlize and Class_Terminate

http://msdn2.microsoft.com/en-us/library/55yzhfb2.aspx

Duane :)





.