[Gambas-user] Sending parms to workspace children
Roel Touwen
roel at ...3306...
Wed Jun 11 15:53:30 CEST 2014
Hi Benoit,
Can you give me a sample? I tried: (Also tried to DIM as Window and
tried Dim.. as new) But I still get an error on the Wd.MayEdit. The
Message of the form's name works.
Thanks in advance.
Best regards,
Roel
Public Sub btnEdit_Click()
Dim Wd As Form
If main.Mayedit = True Then
main.MayEdit = False
btnEdit.Background = main.vbGrey
Else
main.MayEdit = True
btnEdit.Background = main.vbYellow
Endif
For Each Wd In ws.Windows
Message(Wd.Text)
Wd.MayEdit(False)
Next
End
op 11-06-14 15:39, Benoît Minisini schreef:
> 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,
>
More information about the User
mailing list