>Problem is, if the user types in an alphabet character, the letter
>appears in the number box and obviously the formula go 'kaplooee'. that's
>no good. Other than adding a script (using keyPressed(), keyCode,
>keyDown, etc.) that ignores alphabet keys, is there a shortcut so that
>only number keys are recognized when entered?



Don't think so. If you don't want to take care of non-numeric keys, 
which is easy:

on keydown
   if "0123456789." contains the key then pass
end

you could always let them type whatever they like, and then calculate 
using the value() rather than the string. That way if they enter 
alpha characters, it would evaluate to zero.

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to