I'm a little unclear on what you are asking for.  Are you trying to sum 
all the columns in a row, or all the rows in a column?  Is this for 
manipulation, or just display?

--Ben Doom

Peter Tanswell wrote:
> Hi there
> 
> 
> I have a program which produces output as follows:
> 
> 
> 
>   *Projects*
>    Project 1 - revenue:
>    Project 2 - revenue:
> 
> 
>  Project 3 - revenue:
> 
>  Total Revenues:   Jul
> 2006 *month*  *$*1,500.00 *BBB*
>   *$*0.00 *BBB*
>    *$*0.00 *BBB*
>    *$1,500.00*
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Its calculating the column totals correctly,  (only shown July but it shows
> Jul-June) - with a Total column at the end - but I am struggling a little on
> the best approach so as to calculate the row totals.
> 
> 
> 
> I am thinking of creating an array, and then each time I get a new column I
> add the value in question to the array (I know that there will always be 12
> columns).  I'm stumped though on determining the number of rows � there
> could be 3 or there could be 23.
> 
> 
> 
> How would you recommend handling this.  Is it as simple as just setting up
> an array or would you suggest a better approach?
> 
> 
> 
> Thanks in advance.
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291330
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to