Not passing a return key or enter key.

Lynch, Jonathan bnz2 at cdc.gov
Fri Aug 12 17:44:33 EDT 2005


On RawKeyDown pKey
  If  the number of lines in me < 3 or pKey <> 65293 then pass
rawkeydown
End rawkeydown


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Glen
Bojsza
Sent: Friday, August 12, 2005 5:02 PM
To: use-revolution at lists.runrev.com
Subject: Not passing a return key or enter key.

Hi All,

I wish to limit the number of lines (no more than 3) in a field that a
user add input.

I have tried the following in the field's script

on returnKey
  if word 2 of the selectedline > 3 then exit returnKey
end returnKey

on enterKey
  if word 2 of the selectedline > 3 then exit enterKey
end enterKey


But when I hit the enter key after 3 lines it still keeps going to the
next line?

thanks,
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list