lingo-l Key Input

2002-03-07 Thread tushar suresh joshi

Hello friends
I want the user to type in only numbers in a field and if 
backspace or delete key is pressed it should work as normal 
bakspace and delete key works

Thanks.

Tushar Joshi
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]



Re: lingo-l Key Input

2002-03-07 Thread Colin Holgate

Hello friends
I want the user to type in only numbers in a field and if backspace 
or delete key is pressed it should work as normal bakspace and 
delete key works


put this script on the editable field:

on keydown
   if 0123456789numtochar(8) contains the key then pass
end
-- 
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]



RE: lingo-l Key Input

2002-03-07 Thread Rob Walch

 On Behalf Of Howdy-Tzi
nKey = charToNum ( the key )

nKey = the keycode -- ;P

What's the difference?


-Rob

PS. Hi list!

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]