It would be more efficient to only return what you need from the database. Assuming you're using MySQL, the query would look like this:
SELECT LEFT(myColumn,100) FROM tablename That way you only get what you plan on using. <!----------------//------ andy matthews web developer certified advanced 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 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255956 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

