Testing for numerics

Mark Smith mark at maseurope.net
Mon Oct 2 11:27:12 EDT 2006


True. So we have <if fld "someTextField" is an integer>, and we can  
always test for > 0, >=0, etc. as required.

Best,

Mark

On 2 Oct 2006, at 16:08, Rob Cozens wrote:

> Francis, Mark, et al:
>
>>  > Is this the right way to check for numerics, and if
>>>  so, what have I done wrong ?
>>
>> Try
>>
>> 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)
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list