<cfset text = "The long text" />
<cfset text = left(text, 50) />


Regards
Dale Fraser

-----Original Message-----
From: George Linderman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 11 March 2008 11:32 PM
To: CF-Talk
Subject: Urgent: Cut-off (truncate?) too much text

Hey guys,

This is a kind of urgent question, because it's disrupting the SMS service
we use to notify the doctors in our company of emergencies. When someone
submits too much text in a field, it screws up the SMS system, and the SMS
isn't sent. I need to find a way for it to cut off at say 50 characters, and
then send the email to the SMS service that sends it very nicely.

In other words, how do I cut off text at 50 characters server-side, before
sending it with CFMail.


Thanks,
George C. Linderman 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300943
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to