Limit number of chars in a field

Alex Rice alex at mindlube.com
Mon Nov 10 15:34:05 EST 2003


On Nov 10, 2003, at 12:24 PM, Alex Rice wrote:

> on rawKeyDown
>   if (the length of me) > 11 then exit rawKeyDown
>   pass rawKeyDown
> end rawKeydown


on keyDown
   if (the length of me) > 11 then exit keyDown
   pass keyDown
end keyDown

that works better :-) The rawKeyDown if not passed, would not allow 
delete or other ways to continue editing.


Alex Rice <alex at mindlube.com> | Mindlube Software | 
<http://mindlube.com>

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco



More information about the use-livecode mailing list