On Dec 29, 2006, at 1:29 PM, Chuck Pelto wrote:
The compiler only knows that relatedWindow is of type Window. Thus it does not recognize any Window2 properties. You can define relatedWindow to be of type Window2. Or you can cast the reference as follows.

Window2(relatedWindow).aProperty =

THAT looks like an interesting idea. But I doubt if it will satisfy what I'm attempting.

I still would have to hard-code in the window somewhere in the system instead of passing the window name from someplace else in the application. May as well just use Window2.aProperty = ..... The relatedWindow is superfluous.

So, I take it that RB has not been modified to accept this sort of passing of windows.

Too bad.....

And it probably will never be
You're trying to get the value of a property from a subclass via a reference to the super class
There's a way to do this already


_______________________________________________
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