Testing for numerics

Francis Nugent Dixon effendi at wanadoo.fr
Sat Sep 30 14:56:36 EDT 2006


Hi from Paris,

I may be totally dumb, but I am not sure how to use
MatchText. I find the explanation in the on-line doc.
particularly obscure .....

I want to check the contents of a field for numeric,
so, for a field of four characters, I coded :

  matchText(field MyTextField,"[0-9][0-9][0-9][0-9]")
  if it is true then ......

Is this the right way to check for numerics, and if
so, what have I done wrong ?

-Francis

"Nothing should ever be done for the first time !"




More information about the Use-livecode mailing list