Real fine point IMHO

Besides asking you guys, is there any place where I could have found this kind of information?


THX Jack

Bart Pietercil
On 14-okt-06, at 15:01, CV wrote:


On Oct 14, 2006, at 12:46 AM, Bart Pietercil wrote:

Is there someone who can explain me why the first version is acceptable and the second is not ?



I believe that the Array() function requires an exact match of the data type, ie., it doesn't inherently deal with class hierarchy. The Array data type, which you used in the first example does. Since you defined the Array data type as Control it sees your elements as subclasses of Control, which they are. But the Array() function doesn't have that generality.

Best,

Jack

_______________________________________________
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>

_______________________________________________
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