Reply
help with a calculation
Old 10-01-2008, 11:52 PM help with a calculation
Super Talker

Posts: 120
Trades: 0
I'm making a page that generates a table.

You specify the number if cells, and the number if cells per row.

How should I go about finding the number of rows I'll need?
I could probably figure it out myself with a loop, but that seems a tad complicated for what I'm trying to do.
Skeddles is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-02-2008, 05:15 AM Re: help with a calculation
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
rows = number of cells / number of cells per row

i.e. 10 cells, 5 cells per row, 10 / 5 = 2 rows
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 10-02-2008, 07:37 PM Re: help with a calculation
Super Talker

Posts: 120
Trades: 0
thanks, I needed that and also to change it from = to >=
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 10-17-2008, 01:00 AM Re: help with a calculation
Sean@WMS's Avatar
Skilled Talker

Posts: 52
Name: Sean Connors
Location: Eureka, CA USA
Trades: 0
I guess I'm a stick in the mud, but I find this approach inelegant.

For scalability I really wold recommend some sort of loop, whether a For . . . Next, Do While, or Wend.
__________________
Web Merchant Services
Online Payment Processing, FREE shopping cart
Sean@WMS is offline
Reply With Quote
View Public Profile Visit Sean@WMS's homepage!
 
Old 10-17-2008, 03:42 AM Re: help with a calculation
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,674
Name: John Alexander
Trades: 0
Huh? Did someone finally manage to put LSD in my water?
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to help with a calculation
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13860 seconds with 13 queries