I think in the above code you are confusing class with instance. I presume you have subclasses of EditField, ListBox, etc., defined that implement a Load method. Let's say your classes are named myEditField, myListBox, and
myMoviePlayer.  Then the code should read:

if control(i) isa myEditField then myEditField(control(i)).Load
if control(i) isa myListBox then myListBox(control(i)).Load
if control(i) isa myMoviePlayer then myMoviePlayer(control(i)).Load

Use the class name, not the instance's name (even though they all have the
same name, the compiler doesn't know that).


Thanks, Tim! I could have sworn I tried this last night, but maybe there was another error somewhere that I was missing. Or not. Anyhow, this works (so far).

I'll definitely be implementing that class interface magic stuff that Joe was talking about -- but I'm glad I don't have to right this minute! That's what the weekend is for! Working! ....wait, what?

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