[Gambas-user] Direct assignment to arrays of inherited classes does not work
Tobias Boege
taboege at ...626...
Mon Sep 22 18:20:38 CEST 2014
On Mon, 22 Sep 2014, Fabien Bodard wrote:
> strange...
>
> has we can say Control = TextBox ... no ?
>
Yes, this is because it is the other way around. TextBox inherits Control,
so TextBox contains more information. To assign Control = TextBox, we just
need to forget some of the additional stuff in TextBox, which is easy.
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list