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
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
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!
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
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)
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,
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
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
: 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
9 matches
Mail list logo