Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListGetAt display in 2 columns

Status
Not open for further replies.

boatguy

Programmer
Oct 22, 2001
153
US
Hi,

I am generating a bulleted list from a field containing comma separated values. I want to split the list in half and display it in 2 columns but am note sure how to accomplish it.

Here's what I have now:

Code:
<td align="left" valign="top">
<UL>
<CFLOOP index="counter" From="1" TO="#ListLen(Cust_Equipment)#">
<LI>
<font size="2" face="Tahoma">#ListGetAt(Cust_Equipment,counter)#</font> 
</li>
</CFLOOP>
</UL>
</td>

Any Suggestions?
 
Not enough info? Can't be done?

Signed Over anxious
 
pretty simple, a million ways to do it.

first you need your supporting html to actually make the 2 columns.

you could also do a single loop that checks the loop index value to decide if it needs to start a new column, new row, etc...

I would use the code from one of these as the base, replace the query and related functions with list info, listlen, etc...

or


Kevin
 
Thanks Kevin - I'll give it a whack and see what I can break.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top