Saturday (Stuart Kidd) wrote:
Hi,
I'm trying to do something which i can imagine is very simple but
can't find the function. When i display a title
cfoutput#myTitle#/cfoutput i'd like to just display the first 15
characters and if more then put three dots (periods). I know the LEN
There are also a lot of great UDF's available for problems like this at
http://www.cflib.org
-e
-Original Message-
From: Scott Weikert [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 2:11 AM
To: CF-Talk
Subject: Re: restricting cfoutput character length
Saturday (Stuart
Left(myTitle, 15)
Ade
-Original Message-
From: Saturday (Stuart Kidd) [mailto:[EMAIL PROTECTED]
Sent: 28 September 2005 13:31
To: CF-Talk
Subject: restricting cfoutput character length
Hi,
I'm trying to do something which i can imagine is very simple but
can't find the function.
Just put the three dots in as regular text on your page after the variable
Stu gave you Left(myTitle, 15) ...
Rick
-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 8:39 AM
To: CF-Talk
Subject: RE: restricting cfoutput character
From: Saturday (Stuart Kidd) [mailto:[EMAIL PROTECTED]
I'm trying to do something which i can imagine is very simple but
can't find the function. When i display a title
cfoutput#myTitle#/cfoutput i'd like to just display the
first 15 characters and if more then put three dots
cfoutput
cfif len(myTitle) gt 15
#left(myTitle, 15)#...
cfelse
#myTitle#
/cfif
/cfoutput
-Joe
On 9/28/05, Stuart Kidd Saturday [EMAIL PROTECTED] wrote:
Hi,
I'm trying to do something which i can imagine is very simple but
can't find the function. When i display a title
Showoff! ;o)
PS - Translates as Put the dots in after your variable as regular text...
Rick
-Original Message-
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 8:42 AM
To: CF-Talk
Subject: RE: restricting cfoutput character length
From
-
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 8:42 AM
To: CF-Talk
Subject: RE: restricting cfoutput character length
From: Saturday (Stuart Kidd) [mailto:[EMAIL PROTECTED]
I'm trying to do something which i can imagine is very simple but
can't find
8 matches
Mail list logo