...continua...
" strange...
has we can say Control = TextBox ... no ?
for me if B inherit A so it can contain a A class ... it have the same
base struct...
For example in gb.report a reportcontrol can contain a ref to a
reportLabel witch inherit reportcontrol... why it is not the same for
arrays ?
Fabien "
" No, it's the other way.
TextBox inherits Control, so you can assing a TextBox to a Control
variable, but not the contrary.
[...] returns a native array, so you can't assign it to a variable whose
datatype is a class that inherits that native array.
We need the ability to implement an automatic conversion functions
directly in Gambas, not just in C/C++. I won't do that now!
--
Benoît Minisini "
" 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.
Tobia "