[Gambas-user] Enabling multiple TextBoxes with ComboBox
LinuxSeeker
linuxseeker at ...626...
Sun Jun 25 13:35:53 CEST 2006
On 6/25/06, Timothy Marshal-Nichols <timothy.marshal-nichols at ...247...>
wrote:
>
>
>
> There are a number of ways you can do this kind of thing.
>
>
>
> Option 1: Do it the crude way. This does have the advantage it is very
> simple and easy to debug.
>
>
>
> DIM i AS Integer
> i = Val(ComboBox1.Text)
> TextBox1.Enabled = (i >= 1)
> TextBox2.Enabled = (i >= 2)
> TextBox3.Enabled = (i >= 3)
> . ..
>
Thanks, my code so far has been a pile of junk just to make it work (with
ten if's and ten commands for each if...). This will make it way more
readable. Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20060625/27f8ffec/attachment.html>
More information about the User
mailing list