On Mar 3, 2006, at 10:44 AM, Joseph J. Strout wrote:

EditField1, ListBox1, and MoviePlayer1 (which BTW I hope are not their real names!)

Ha!  No, they aren't.

Define a new Class Interface, called Loadable, that defines a Load method. Make each of your control subclasses implement this interface (which, since they already have a Load method, simply means adding "Loadable" to their Interfaces property). Then the code in your superclass becomes:

  if control(i) IsA Loadable then Loadable(control(i)).Load

Ok. That's what Guyren said, also, I think. I thought it was more of a code cleanliness thing, but if that's what I actually need to do to make this work, then I'm all over it.

Aren't interfaces great?

God I hope so! I've been avoided them but I'm about to find out everything I can!

Thanks!
Ian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to