Ensuring numeric input

Jim Ault JimAultWins at yahoo.com
Thu Oct 27 12:29:25 CDT 2005


Yep, Which came first.. the decimal or the digit,
or the comma
or the space to indicate the end of the word
or multiple numbers
or dollar signs

Perhaps 'hinting' by inserting a '?' as a place holder until a valid number
is found.  Rather complicated when dealing with humans, eh?

Jim Ault
Las Vegas


On 10/27/05 8:53 AM, "Ken Ray" <kray at sonsothunder.com> wrote:

> On 10/27/05 8:34 AM, "Lynch, Jonathan" <bnz2 at cdc.gov> wrote:
> 
>> .2 is a number
>> . is just a period, not a number
>> 
>> -2 is a number
>> - is just a minus sign, not a number
> 
> True... but that raises another UI issue - if the field has ".2" in it and
> someone attempts to delete the "2", do we keep the "." by itself in the
> field, hoping someone will type another number and then tray it on
> closeField to provide an alert? Or do we remove the decimal point as well to
> empty the field? And if we *do* remove the decimal, how would that be
> different from having an empty field and typing a decimal point to start a
> decimal number; before the actual number is typed, there's just a decimal
> point in the field...
> 
> Hmm...
> 
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: kray at sonsothunder.com
> 
> _______________________________________________
> 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