Ensuring numeric input
Ken Ray
kray at sonsothunder.com
Thu Oct 27 11:50:13 EDT 2005
On 10/27/05 5:19 AM, "Alex Tweedly" <alex at tweedly.net> wrote:
> Ken Ray wrote:
>
>>
>> BTW: There was no reason to trap for backspace/delete as there isn't a way
>> AFAIK to remove some or part of a number and have the end result *not* be a
>> number.
>>
>>
> isNumber("-1") true
> isNumber("-") false
>
You're right! Good catch, Alex!
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list