Thanks to everyone on that, i certainly got my answer and even more  
than i bargained for (Senor Tangorre)!

:)

On 28 Sep 2005, at 13:53, Rick Faircloth wrote:

> 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: 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
>>> (periods).  I know the LEN function but i can't work out how
>>> to replace the text with dots after the 15th character.
>>>
>>
>>
>> Let's see how many people I can piss off this morning with a nice
>> example using IIF and DE. :-)
>>
>> Replace "str" with your string.
>>
>> #IIF(Len(str) gt 15,DE(Left(str,15) & '...'),DE(str))#
>>
>> HTH,
>>
>> Mike
>>
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219407
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to