<cfif len(mymemofield) gt 250>
        <cfset mymemo=left(mymemo,250)>
</cfif>
<cfoutput>#mymemo#</cfoutput>

-----Original Message-----
From: Corey Yiap [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 17, 2002 11:23 PM
To: CF-Talk
Subject: limit <cfoutput>


Does anyone know a way to limit the length of the output from <cfoutput>
tag?  I have a data field from db that is that set to MEMO, obviously it's
more then 255 char. but I would like to only display the first 255 char. and
add a "read more..." link to redirect it to a more descript page.

thanks
corey



______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to