It shouldn't be too hard to take the midpoint then step forward and or 
backwards to find a space character then break at that point.  

Off the top of my head, completely untested:
<cfscript>
        breakpoint = len(text)/4;

        while (mid(text,breakpoint,1)) NEQ " ";
        {
                breakpoint = breakpoint - 1;
        }
</cfscript>
You will need to add logic to move the breakpoint from section to section and 
capture each section of text.



--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

....-----Original Message-----
....From: Greg Morphis [mailto:[EMAIL PROTECTED]
....Sent: Monday, February 28, 2005 9:57 AM
....To: CF-Talk
....Subject: Re: Dividing output??
....
....See I know I can do it with a delimiter... the only problem is where
....to put it.. I dont want one column longer than the others. This data
....will more than likely be fed into the DB. The delimiter wont normally
....be there. I know I could use mid but that does by character, not
....word.. so half of a word could be at the bottom of the first column
....and the other half at the top of the second.
....
....
....
....On Mon, 28 Feb 2005 12:41:18 -0500, Umer Farooq <[EMAIL PROTECTED]>
....wrote:
....> Mid and Left functions should help out here.
....>
....> Greg Morphis wrote:
....> > Is it possible (I can't see how) to take a big block of text from the
....> > database and split it up into 4 columns within a table?
....> >
....> >
....> >
....> >
....> >
....>
....> --
....> Umer Farooq
....> Octadyne Systems
....> +1 (519) 489-1119 voice
....> +1 (519) 635-2795 mobile
....> +1 (530) 326-3586 fax
....>
....> WEB SOLUTIONS FOR NON-PROFIT ORGANIZATION:
....> http://www.Non-ProfitSites.biz
....>
....> WARNING: ------------------------------- The information contained in
....> this document and attachments is confidential and intended only for the
....> person(s) named above. If you are not the  intended recipient you are
....> hereby notified that any disclosure, copying, distribution, or any
....other
....> use of the information is strictly prohibited.  If you have received
....> this document by mistake, please notify the sender immediately and
....> destroy this document and attachments without making any copy of any
....kind.
....>
....>
....>
....
....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:196839
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