Constraining an input field's contents to be a single line.

Mike Kerner MikeKerner at roadrunner.com
Mon Sep 18 16:41:31 EDT 2017


If you have a mobile text field object, then have you looked at
inputReturnKey?


On Mon, Sep 18, 2017 at 4:17 PM, Alex Tweedly via use-livecode <
use-livecode at lists.runrev.com> wrote:

> I'm sure there must be an easy way I'm missing ..... he said in hope :-)
>
> I want a field to contain a single line of data - i.. no CRs.
>
> I've done the easy bit (a handler for returninfield).
>
> I can even do the moderate bit -  a 'pastekey' handler, and check for CRs
> in the clipboard - but that doesn't apply to mobile (or at least, the dict
> says it doesn't).
>
> Is there any way to handle it on mobile ?
>
> Thanks
> Alex.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the Use-livecode mailing list