Limiting data entry in fields

Terry Judd tsj at unimelb.edu.au
Mon Nov 29 17:11:57 EST 2010


Not perfect but should get you started...

on keyDown theKey
   put "0123456789" into tKeys
   if tKeys contains theKey then
      if length (me) < 3 then
         put theKey after me
      end if
   end if
end keyDown

Terry...


On 30/11/10 7:51 AM, "charles61" <cszasz at mac.com> wrote:

> 
> How do I limit data entry to only three digits and no decimals in a numerical
> data entry field?

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne






More information about the use-livecode mailing list