RE: limiting output of text

2006-10-09 Thread Andy Matthews
coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: terry yee [mailto:[EMAIL PROTECTED] Sent: Sunday, October 08, 2006 4:36 PM To: CF-Talk Subject: limiting output of text Hi, Am calling text from datasource and need

Re: limiting output of text

2006-10-09 Thread Larry Lyons
What about cfoutput#Left(getRewards.reward_description, 100)#/cfoutput On 10/8/06, terry yee [EMAIL PROTECTED] wrote: The problem with this solution is that it may cut off words in the middle once you've hit the 100 count. A better solution is to stop at the nearest word. There's UDF in

Re: limiting output of text

2006-10-09 Thread Denny Valliant
On 10/8/06, Richard Dillman [EMAIL PROTECTED] wrote: www.cflib.org has a UDF called *FullLeft(str, count) * allows you to do a left on a string and only trim at the end of whole words. Some how i see triming at the last word being the next question :-) LOL!

limiting output of text

2006-10-08 Thread terry yee
Hi, Am calling text from datasource and need to display only a small portion of it. ie. first 100 characters etc.. my code: cfif len(getRewards.reward_description) #Replace(Trim(getRewards.reward_description), Chr(10), br , ALL)# /cfif cheers terry

Re: limiting output of text

2006-10-08 Thread Jason Radosevich
What about cfoutput#Left(getRewards.reward_description, 100)#/cfoutput On 10/8/06, terry yee [EMAIL PROTECTED] wrote: Hi, Am calling text from datasource and need to display only a small portion of it. ie. first 100 characters etc.. my code: cfif len(getRewards.reward_description)

Re: limiting output of text

2006-10-08 Thread terry yee
Cheers, Just what i needed What about cfoutput#Left(getRewards.reward_description, 100)#/cfoutput On 10/8/06, terry yee [EMAIL PROTECTED] wrote: ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,

Re: limiting output of text

2006-10-08 Thread Denny Valliant
Heh. I don't know why I don't like cfif len(something) in the same manner I don't like cfif recordcount, but anywayze... ;-] cfset dis_reward_description = Replace(Trim(reward_description), Chr(10),br / ,ALL) cfif len(dis_reward_description) gt 97 #left(dis_reward_description,97)#... cfelseif

Re: limiting output of text

2006-10-08 Thread Richard Dillman
www.cflib.org has a UDF called *FullLeft(str, count) * allows you to do a left on a string and only trim at the end of whole words. Some how i see triming at the last word being the next question :-) On 10/8/06, Denny Valliant [EMAIL PROTECTED] wrote: Heh. I don't know why I don't like cfif

RE: limiting output of text

2006-10-08 Thread Bobby Hartsfield
: limiting output of text Hi, Am calling text from datasource and need to display only a small portion of it. ie. first 100 characters etc.. my code: cfif len(getRewards.reward_description) #Replace(Trim(getRewards.reward_description), Chr(10), br , ALL)# /cfif cheers terry