On Thursday 12 January 2006 09:58, Charles Yeomans wrote: > On Jan 12, 2006, at 11:19 AM, johnf wrote: > > On Thursday 12 January 2006 07:18, Joseph J. Strout wrote: > >> EditField(Control(i)).Enabled = false > > > > Joseph thanks for the response. And of course it works. But it leads > > to the > > next question. How did you determine that the "EditField" was an > > array? The > > same thing happened for the window code (BTW I used self.Control()). > > In the > > Lang ref I found the window class and that does say something about > > control > > being an array. But I don't see anything about the EditField > > having/being an > > array. > > It's not. What's going on here is that Control(i) returns an object > reference of type Control. EditField(Control(i)) casts the type to > EditField. If Control(i) were not an EditField, then Rb would raise an > IllegalCastException. > > -------------- > Charles Yeomans Thanks Charles I think that was discussed in the past. "Casting", "Casting", "Casting", "Casting", "Casting", "Casting" (please brain allow that to sink in).....
Again thanks. John _______________________________________________ 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>
