[Gambas-user] Question to controls

Gianluigi bagonergi at gmail.com
Sun Oct 4 14:44:01 CEST 2020


Il giorno dom 4 ott 2020 alle ore 14:13 Dag Jarle Nerland Johansen - Gambas
<gambas at cd-bahia.com> ha scritto:

> Hi,
>
> I have some textboxes on a form.
> To simplify some actions I wanted to use a virtual control defined as
>
> *...*
> I don't want to need all the theory of OOP, I only now and then program,
> but want to make it easier though.
> (Already retired)
>
> Thanks in advance
> Dag
>

You can group all the textboxes into a single group e.g .:

In the properties of the textboxes in Group write myText

And then in the class:

Public Sub myText_GotFocus()

  Print Last.Name

End

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201004/df9f893a/attachment.htm>


More information about the User mailing list