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

Benoît Minisini gambas at ...1...
Thu Mar 4 15:52:39 CET 2010


> On Thursday 04 March 2010 20:53:43 you wrote:
> > 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 way.
> > 
> > Jack
> 
> I wonder if there is a speed difference in any of these methods?
> 

Yes, but someone should measure it!

And Trim() removes spaces, IsNull() does not.

-- 
Benoît Minisini




More information about the Devel mailing list