[Gambas-user] IsNumber question

nando nando_f at ...951...
Fri May 13 09:27:38 CEST 2005


Benoit,

I have a question with TEXTAREA

  TextArea1.Text = "349"
  PRINT IsNumber(TextArea1.Text)

produces FALSE

I was presuming from Wiki that
IsNumber tested an expression.

Of course 349 is a string
but it also vals to a valid number.

It would seem that IsNumber only looks at the type of var
without doing the internally VAL - perhaps as designed.
Performing the VAL would help determine if a string VAL'd
to a valid number.

Yes, I could code it, but is seemed IsNumber ought to do that.
How would IsNumber be used without VAL at the same time?

Sincerely
-Fernando




More information about the User mailing list