How to remove a carriage return from a field?

Lynch, Jonathan bnz2 at cdc.gov
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 lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Claire
Bradin Siskin
Sent: Wednesday, January 18, 2006 9:41 PM
To: use-revolution at lists.runrev.com
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
http://edvista.com/claire/
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list