Testing for numerics

Rob Cozens rcozens at pon.net
Mon Oct 2 11:08:10 EDT 2006

Francis, Mark, et al:

>  > Is this the right way to check for numerics, and if
>>  so, what have I done wrong ?
>if field "MyTextField" is a number

This is fine if signed and decimal input is allowed; but isn't an 
adequate check for numerics that must be positive or integers only.

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)

More information about the Use-livecode mailing list