[Gambas-user] How top clearing a readonly textbox

T Lee Davidson t.lee.davidson at gmail.com
Sat Nov 26 16:33:39 CET 2022


On 11/26/22 10:28, gian via User wrote:
> This way it is more serious:
> 
> Public Sub Button1_Click()
> 
>    Dim ctl As Object
> 
>    For Each ctl In Me.Controls
>      If Object.Type(ctl) = "TextBox" And If ctl.readonly Then Print ctl.name
>    Next
> 
> End

I didn't keep the email in which BB attached a sample demo of his problem or I'd forward it to you. But, in that message he 
stated that he has many more types of controls other than just textboxes, including custom controls, that he wants to clear. I 
almost missed that until I read his email again more thoroughly.


-- 
Lee



More information about the User mailing list