[Gambas-user] Inheritance issue... or visibility issue... or something I think
Jorge Carrión
shordi at ...626...
Sat Jun 11 11:54:53 CEST 2016
I think that I miss something here.
I have a control A inherits usercontainer. It has a property, let's say a
connection called Conexion
I have another control B inherits, let's say a listbox. It has a Private
$conexion as connection variable.
in Sub _new() or B, I code this
$conexion = me.Parent.Conexion
and get a "wanted variant get function" error.
If I stop de execution on that line an double-click on me.parent an I can
see the Conexion property without problems.
But If I code instead:
Dim o as object
o=me.parent
$conexion=o.Conexion
Then it works. I have doing something wrong... but, what?
See the attached project if I did not been clear enough.
Best Regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-0.0.1.tar.gz
Type: application/x-gzip
Size: 11831 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160611/57bd1af3/attachment.bin>
More information about the User
mailing list