ella_liberman
August 2nd, 2001, 03:48 PM
Is there any way to create a subclass of a user-defined class module in VB? (not activeX controls or Window objects).
What I need a subclass for, is to inherit properties of a higher-level class.
thanks much,
Ella
cksiow
August 2nd, 2001, 07:51 PM
For COM object, you have two choices, Containment or Aggregation. For your case, I think you should use Aggregation. Most of the time, people do it using C++, because doing it in VB is a bit difficult (maybe VB.Net will change this). I read a book, Advanced VB 6 by matthew curland which have some functions that help in this, probably you need to have a look on it.
But, if I am not mistaken, if the object doesn't support aggregation, then the only way is use containment.
HTH
cksiow
http://vblib.virtualave.net - share our codes