View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
scattered[_2_] scattered[_2_] is offline
external usenet poster
 
Posts: 14
Default Quick Interface Question



reddog9069 wrote:
I have an interface that has all abstract methods, except one method
that I want every implementation of the interface to have.

When I am implementing an interface, do I have to copy the whole
subroutine from the interface to the implementation or is there a way
to make the implementation call the interface definition of the
subroutine?

Also does anyone have a good resource for interfaces and user defined
classes in VBA because I cannot really find any good ones?

Thanks


--
reddog9069


Hi,
A good reference on the use of classes in VBA is "The VBA Developer's
Handbook"
http://www.amazon.com/exec/obidos/tg...books&n=507846

I have never played around with the Implements keyword so I can't
answer your question. Maybe you could post it to a straight VB
newsgroup. You seem to be asking for something like implementation
inheritence, which is not directly supported in VB6 or VBA. There *is*
a trick involving delegation that supposedly provides a work-around,
but I honestly don't recall how it works. Maybe on a VB group (but not
the VB.Net!)you can find an answer.

Hope that helps

-John Coleman


------------------------------------------------------------------------
reddog9069's Profile: http://www.excelforum.com/member.php...o&userid=24458
View this thread: http://www.excelforum.com/showthread...hreadid=390686