> > Benoît, > > MAJOR PANIC! I use IsNumber extensively to do quick checks on field > parsing across heterogeneous databases. Using the 80-20 rule I can parse > text fields for junk appendices to an expected numeric. > Code such as > > vItem=split(result!note," ",NULL,TRUE)[0] > IF IsNumber(vItem) THEN RETURN Val(vItem) > ' else begin parsing diabolical note structure > ..... > > abounds. > > Please reconsider this.
Then you are using IsNumber() the wrong way: in your code, vItem is a string (I guess), and so IsNumber(vItem) will always return FALSE. You used IsNumber() as if it would tell you if a string can be converted to a number, which it does not at the moment! And which is exactly what I want to change! -- Benoît Minisini ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user