Re: [Gambas-user] Dumb question - testing for an empty text box

2010-03-04 Thread Jack
richard terry a écrit : > I almost feel embarrassed to ask this having programmed in gambas for so > long, > but here goes. > > simplest syntax for testing for no text in a textbox. > > I currently to > > if Trim(textbox1.text) = "" then salut Richard, if isnull(Textbox1.text) is an another

Re: [Gambas-user] Dumb question - testing for an empty text box

2010-03-04 Thread Doriano Blengino
richard terry ha scritto: > On Thursday 04 March 2010 18:07:57 Ricardo Díaz Martín wrote: > >> I always use for this: >> >> If Len(TextBox1.Text) = 0 Then >> > > But the user could have put ascii 32's in the textbox, so need to to Trim. > > In effect, a space is different from an empty s

Re: [Gambas-user] Dumb question - testing for an empty text box

2010-03-04 Thread richard terry
On Thursday 04 March 2010 18:07:57 Ricardo Díaz Martín wrote: > I always use for this: > > If Len(TextBox1.Text) = 0 Then But the user could have put ascii 32's in the textbox, so need to to Trim. Richard > > But is the same that wrote Stefano. > > Regards, > Ricardo Díaz > > 2010/3/4 Stefan

Re: [Gambas-user] Dumb question - testing for an empty text box

2010-03-03 Thread Ricardo Díaz Martín
I always use for this: If Len(TextBox1.Text) = 0 Then But is the same that wrote Stefano. Regards, Ricardo Díaz 2010/3/4 Stefano Palmeri > Il giovedì 4 marzo 2010 00:57:32 richard terry ha scritto: > > I almost feel embarrassed to ask this having programmed in gambas for so > > long, but here

Re: [Gambas-user] Dumb question - testing for an empty text box

2010-03-03 Thread Stefano Palmeri
Il giovedì 4 marzo 2010 00:57:32 richard terry ha scritto: > I almost feel embarrassed to ask this having programmed in gambas for so > long, but here goes. > > simplest syntax for testing for no text in a textbox. > > I currently to > > if Trim(textbox1.text) = "" then > > etc. > > Anything better

[Gambas-user] Dumb question - testing for an empty text box

2010-03-03 Thread richard terry
I almost feel embarrassed to ask this having programmed in gambas for so long, but here goes. simplest syntax for testing for no text in a textbox. I currently to if Trim(textbox1.text) = "" then etc. Anything better? Richard -