[Gambas-user] Children Clear problem

Fabien Bodard gambas.fr at gmail.com
Mon Sep 24 11:36:08 CEST 2018


Gianluigi just a little remember :

to call an object property it will be :

Panel.Children[n].Clear

But this can't work as Children return Control class objects.

This class have not Clear method.

so to clear all object that need to be cleared in a container:

Dim o as object

for each o in Children
 try  o.Clear
next

Object allow unknown function to be called and try avoid the error if the
object returned by children have not this property.


... Well it was not the subject ... ;-)


Le lun. 24 sept. 2018 à 11:21, Gianluigi <bagonergi at gmail.com> a écrit :

>
>
> Il giorno lun 24 set 2018 alle ore 11:07 Fabien Bodard <
> gambas.fr at gmail.com> ha scritto:
>
>> in fact he call the true method to destroy children :
>>>
>>
>>  http://gambaswiki.org/wiki/comp/gb.qt4/.container.children/clear
>>
>> this is a bug .
>>
>> it crash for me in all gtk libs
>>
>>
> I'm sorry,
> I didn't know the method.
> Whoever misunderstands, the worse he replies :-(
> I confirm the malfunction with gtk
>
> Regards
> Gianluigi
>
> P.S. Charlie's a friend. I hope he'll excuse me.
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>


-- 
Fabien Bodard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180924/a6c9c089/attachment.html>


More information about the User mailing list