Syed
Thu Jan 08 23:49:57 CST 2004
"Rick Rothstein" <rickNOSPAMnews@NOSPAMcomcast.net> wrote in message
news:uZAh9eg1DHA.2700@TK2MSFTNGP11.phx.gbl...
> > For this purpose try this.
> >
> > If IsNumeric(Text1.Text) = False Or Not CDbl(Text1.Text) > 0 Then
> > Text1.Text=""
>
> From a previous post of mine...
>
> I usually try and steer people away from using IsNumeric to "proof"
> supposedly numeric text. Consider this (also see note at end of post):
>
> ReturnValue = IsNumeric("($1,23,,3.4,,,5,,E67$)")
>
> Most people would not expect THAT to return True. IsNumeric has some
"flaws"
> in what it considers a proper number and what most programmers are looking
> for.
Thanks Rick! Mistakes are necessary for learning. That's what I have done
(unintentionally).
Thanks again!
--
Syed Zeeshan Haider.
http://szh.20m.com/
-----------------------------------
Allah says to Mankind:
"Then which of the favours of your Lord will ye deny?"