That does the trick, if you insert
"else pass keyDown"
after the if line.

Thanks for the help!

>>>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<<<

To:             [EMAIL PROTECTED]
From:           Kevin Miller ([EMAIL PROTECTED])
Subject:                Re: field mask

On Wednesday, Oct 6 1999, Leston Drake wrote:

> Hey all,
> 
> I want to create a field that only allows certain characters (e.g., digits
> 0-9) to be typed into it.
> What's the best way to do this?

on keyDown theKey
  if theKey is not a number then exit keyDown
end keyDown

Regards,

Kevin

> TIA
> -Leston
>
> ------------------------------
> Leston Drake
> LetterPress Software, Inc.
> http://www.lpsoftware.com
> ------------------------------

Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.



------------------------------
Leston Drake
LetterPress Software, Inc.
http://www.lpsoftware.com
------------------------------

Reply via email to