Darned "off-by-one" conditions! This is all from me...
<cfset TotalSales = #sales.RecordCount#>
<cfset NumRows = TotalSales / 8> <!--- Want 8 columns --->
<cfset IntRows = int( NumRows + 0.99 )> <!--- Probably a native that
will do this but... --->
<table border="1">
<tr><td valign="top">
<cfoutput query="sales">
<cfif NOT ((currentrow-1) MOD IntRows)>
</td><td valign="top">
</cfif>
#ID#. #AuctionType#-#AuctionID#<br>
</cfoutput>
</td></tr>
</table>
-----Original Message-----
From: Eli Sanders [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: RE: Can this be done?
Yes...! Code below...
<CFDIRECTORY DIRECTORY="c:" NAME="myDirectory" >
<!--- Output the contents of the CFDIRECTORY as a CFTABLE --->
<table>
<cfset x = 0>
<cfoutput query="mydirectory">
<cfif name neq '. ' or name neq '.. '>
<cfif x eq 0>
<tr>
</cfif>
<cfset x = x + 1>
<td>#Name#</td>
<cfif x eq 3>
</tr>
<cfset x = 0>
</cfif>
</cfif>
</cfoutput>
</table>
-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 11:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Can this be done?
Hi,
This might be a crazy question but here it goes.
I'm using <cfdirectory to list files on our server. Some directories can
have a 100+ files in them. Presently I'm displaying the list down the
left
side of my webpage under each other.
file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
etc...
I was wondering if there is a way automatically using a table to do the
following and if so, how?
file1.txt file5.txt file9.txt file13.txt file17.txt
file2.txt file6.txt file10.txt file14.txt file18.txt
file3.txt file7.txt file11.txt file15.txt file19.txt
file4.txt file8.txt file12.txt file16.txt file20.txt
+-----------------------------------------------------------------------
------------+
Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+-----------------------------------------------------------------------
-------------+
------------------------------------------------------------------------
-
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info:
www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org