looks like you've got that one line backwards:
instead of
if theKey contains okEntries then
shouldn't it be
if okEntries contains theKey then
??
--bhakti
Gene Fritzinger wrote:
>
> Hello List,
> Can anyone suggest a way of limiting the input of a field member to only numbers.
>I've tried the approach below, but this for some reason isn't even allowing numbers
>to be entered.
>
> on startMovie
> set the keyDownScript to "checkNumericInput"
> end
>
> on checkNumericInput
> theKey = the keyPressed
> okEntries = "1, 2, 3, 4, 5, 6, 7, 8, 9, 0"
> if theKey contains okEntries then
> NOTHING
> else
> alert "Please enter only numbers"
> RETURN
> end if
> end checkNumericInput
>
> Thanx for any suggestions,
> g fritzinger
>
>
> [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!]
--
R. Bhakti Klein
Educational Software R & D
http://www.DLWorkshop.net
��
Baritone
���
"On Earth, you can only do little things;
but you can do them with a lot of Love."
-- Mother Theresa
[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!]