[Gambas-user] Question about enabling a TextBox

Piramix Tecnologías piramix at ...178...
Sun Jan 27 22:46:33 CET 2008


But I can't store the object in a table of a database.
I just have the name of each object. How can I proceed in this case?


> ----- Original Message -----
> From: "Fabien Bodard" <gambas.fr at ...626...>
> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
> Subject: Re: [Gambas-user] Question about enabling a TextBox
> Date: Sun, 27 Jan 2008 12:32:49 +0100
> 
> 
> On Sunday 27 January 2008 12:03:31 Piramix Tecnologías wrote:
> > Good morning people. I've got a little problem and here is it:
> > I've got a Form with 3 TextBoxes on it (DISABLED by default) called BoxOne,
> > BoxTwo and BoxThree. I need to enable or disable then depnding on the code.
> > For that purpose I store the name of each one in a variable called BoxState
> > wich is previously defined as String (obviously here's my mistake). When I
> > try to do
> > BoxState = "BoxOne"
> > BoxState.Enabled = TRUE
> >
> > I got an error.
> > How can I do that?
> > I even tried to define a TextBox during execution and then destroy the
> > control and other steps which I don't remember now but without any success.
> > Help will be appreciated.
> > Greetings.
> > Pablo.
> 
> you need to store the object ... not the name !
> 
> If you have already named the box in the property windows... yu just have to
> use the control name !
> 
> TextBox1.Enabled = true
> 
> You var is just a string ... so the error is normal
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

>


-- 
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!





More information about the User mailing list