you could try
> on keyDown me
> if keyCode() = 36 then
passTrue = 1
> end if
if passTrue = 0 then pass
> end
>
declare that passTrue = 0 at the start of the script
HTH
Si
> ----------
> From: Jamie Dyer
> Reply To: [EMAIL PROTECTED]
> Sent: Wednesday, November 28, 2001 12:43 PM
> To: Lingo (E-mail)
> Subject: <lingo-l> catching a return keypress
>
> Hi,
>
> I am trying to catch a retern key press so that it is not displayed on
> screen. While editing a text field I am catching the return key press
> as
> a way of ending the text input. if I use the script below nothing I
> type
> appears in the text box. If I replase the keyDown with keyUp then it
> works but the return is displayed on screen (then removed using a
> search
> and replace) I dont want to be able to see the return happen, if the
> cursor is in the middle of a sentance it goes onto the next line the
> flicks back up again.
> Any ideas?
>
> on keyDown me
> if keyCode() = 36 then
> -- turn off text edit
> gItem[me.ID].editText(false)
> end if
> end
>
>
> Jamie Dyer
> Senior Web Designer
> T: 01752 23(3959)
> University of Plymouth
>
>
> [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!]
>
>
>
[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!]