|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Progressive addition in cfoutput
Its Friday and I am having some difficulty coding out the logic for progressive addition. eg
sum of the week on Day 1: 7 hours sum of the week on Day 2: 15 hours (which is 7+8 hours) sum of the week on Day 3: 21 hours (which is 7+8+6 hours) Any ideas? Tx |
|
#2
|
|||
|
|||
|
Um, aren't you talking about addition?
<cfset totalHours = 0> <cfloop query="queryThatHasHoursByDay"> <cfset totalHours = totalHours + thisDayHours /> </cfloop> ?
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Progressive addition in cfoutput |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|