[Gambas-user] Sending parms to workspace children

Benoît Minisini gambas at ...1...
Wed Jun 11 15:39:07 CEST 2014


Le 11/06/2014 14:32, Roel Touwen a écrit :
> Hi All,
>
> At last I moved on to gambas 3. But I'm running in some kind of problem.
> In gambas2 I used a function to let all the children now Edit is true or
> false. In the hosting form  I do:
>
> for each object in workspace.children
>     try object.MayEdit(True)            ' or false of course
> next
>
> and
>
> for each object in workspace.children
>     try object.RelationNumber = RelationString
> next
>
>
>
> But no matter what I try I simply cannet use this anymore. Any suggestions?
>

You must use the Workspace.Windows property.

Children maybe worked in Gambas 2, but never the documentation told you 
that you will get necessarily the windows you embedded in the Workspace 
that way.

Regards,

-- 
Benoît Minisini




More information about the User mailing list