Testing for numerics
FlexibleLearning at aol.com
FlexibleLearning at aol.com
Thu Oct 5 01:51:45 EDT 2006
Moi? Unknown? This indicates I should be posting more frequently!
/H
aka Hugh Senior, developer in HC, then SC, then MC and Rev, since 1984 (now
feeling old)
>> However, the equally elegant solution from our unknown
>> "FlexibleLearning at aol.com" user is also interesting :
> function isPositiveInteger pValue
> return (pValue is a number) AND (pValue >=0) AND
> (trunc(pValue)=pValue)
> end isPositiveInteger
More information about the use-livecode
mailing list