How to remove a carriage return from a field?

Lynch, Jonathan bnz2 at
Thu Jan 19 15:40:29 EST 2006

Put this in the field:

On rawkeydown pKey
  If numtochar(pKey) <> linefeed then pass rawkeydown
End rawkeydown

-----Original Message-----
From: use-revolution-bounces at
[mailto:use-revolution-bounces at] On Behalf Of Claire
Bradin Siskin
Sent: Wednesday, January 18, 2006 9:41 PM
To: use-revolution at
Subject: How to remove a carriage return from a field?

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. :-)

Thanks very much,
Claire Bradin Siskin
use-revolution mailing list
use-revolution at
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:

More information about the Use-livecode mailing list