[Gambas-user] How top clearing a readonly textbox
gian
bagoneo at libero.it
Sat Nov 26 15:46:37 CET 2022
Il 26/11/22 06:04, T Lee Davidson ha scritto:
> On 11/25/22 22:16, BB wrote:
>> Yeah, I over simplified my problem. I'm trying to clear a form by
>> going through all the controls and trying to "clear" them.
>
> I didn't actually look at your demo, so I may be spinning my wheels
> here. However, here is a solution similar to Jussi's but accomplished in
> a different way.
Hi,
Maybe this is a stupid way, but if you have a method to uniquely name
textboxes this might work :
Public Sub Button1_Click()
Dim ctl As Object
For Each ctl In Me.Controls
If ctl.Name Like "*textbox*" And If ctl.readonly Then Print ctl.name
Next
End
Regards
Gianluigi
More information about the User
mailing list