How to limit field to one line?

kee nethery kee at kagi.com
Wed Nov 2 13:02:34 EST 2005


returnInField in case someone enters a return in the field.
closeField in case someone pastes multiple lines of text into the field

on returnInField
   put line 1 of me into me
   answer "Only one line of text is allowed in this field." with :OK"
end returnInField

on closeField
   if return is in me then
     returnInField
   end if
   pass closefield
end closefield



More information about the use-livecode mailing list