worked in 2.5.1 not in 2.7.2

Klaus Major klaus at major-k.de
Wed Jun 14 14:12:48 EDT 2006


Hi Robert,

> This turned out to be a text entry box not set up right
>
> how do you set the text entry box to only up to 3 numbers and no CR?

Put this into the fields script:

on keydown tKey
      if tKey is not a number then
             exit keydown
      end if
     ## This way only number will pass
     if the num of chars of me < 3 then
            pass keydown
      else
           beep ## or whatever
      end if
end keydown

Et voila :-)

> Robert Mann

Best from hot germany

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list