Great thanks, I had to add a cfset subcounter = subcounter + 1> at the bottom of the loop and then it works a treat.

Cheers for the help.

Dave

At 15:24 2/25/2003 +0000, you wrote:

how about this:

<cfset counter = 0>
<cfset subcounter = 0>

<cfoutput>
<cfloop index="i" from="1" to="#foo.recordcount#">
     <cfif counter NEQ foo.section[i]>
     <!--- incremented, so reset subcounter to 0 --->
          <cfset counter = foo.section[i]>
          <cfset subcounter = 0>
     </cfif>
      dqm__subdesc#foo.section[i]#_#subcounter# = "#foo.pagetitle[i]#" ;
</cfloop>
</cfoutput>



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



Reply via email to