> Perhaps I haven't had enough coffee this morning. But I'm having the
> darnedest time wrapping my head around this one (or maybe I just got
> to the point of abstracting this one a little too much in my head):
>
> I have say (4-5) queries of variable record count and would like to
> split the results into two columns (ordered vertically, not
> horizontally), also breaking at the logical "half point". For
> instance:
>
> 1     5
>
> 2     6
>
> 3     7
>
> 4     8
>
> Any recommendations or resources anyone could point me to?

Have 2 cells in a table, close the first cell when you've reached
half-way

Either that, or if you want them in columns and they have to be laid out
like labels then loop over the list (to half-way), and just add that
half on for the 2nd column

<cfloop index="I" from=1 to=4>
        <tr>
                <td>#i#</td>
                <td>#Evaluate(i+4)#</td>
        </tr>
</cfloop>

Using that theory;
                <td>#Address[i]#</td>
                <td>#Address[i+4]#</td>

HTH

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to