How to remove a carriage return from a field?

Sarah Reichelt sarah.reichelt at gmail.com
Thu Jan 19 17:32:20 EST 2006


On 1/19/06, Claire Bradin Siskin <cbsiskin at pitt.edu> wrote:
> In my stack, the user enters identifying information into a field,
> and this text is used to build a filename for ftp upload. This works
> fine as long as the user does not enter a carriage return at the end
> of the field. If the user does press "enter," this messes up the
> upload. How can I script it so that any carriage returns are removed
> from the field?
>
> Suggestions for actual scripts would be very much appreciated since I
> am a newbie. :-)
>

If you set the autoTab for the field to true (check "Tab on Return" in
the Inspector) and make sure it is only high enough to fit one line,
then any attempt to enter a new line will just be like tabbing to the
next field.

Cheers,
Sarah



More information about the use-livecode mailing list