There is something wrong with this code (other than it's overly complex...),
but I can't see it. Every time I run this code I get an anit.exe process
that goes to 99%, but, and here is the weird part, the CF template does stop
processing and I get all of the debug except for the queries...weird. What
did I do wrong? I think it has something to do with me misunderstanding how
cfexit works (this is not a custom tag).

getVCount.recordCount = 2
getVariants.recordCount = 6

<cfset loop = 1>
<cfloop from="1" to="#getVCount.recordCount#" index="i">
 <cfset thisVGroup = getVariants.vGroup[loop]>
 <cfoutput>
  <select name="v_#getVariants.vGroup#">
  <cfloop condition="getVariants.vGroup[loop] EQ thisVGroup">
   <option
value="#getVariants.varLabel[loop]#">#getVariants.varLabel[loop]#</option>
   <cfif loop EQ getVariants.recordCount>
    <cfexit>
   <cfelse>
    <cfset loop = loop + 1>
   </cfif>
  </cfloop>
 </cfoutput>
 </select><br>
</cfloop>

Here is the code that works as expected

<cfset loop = 1>
<cfloop from="1" to="#getVCount.recordCount#" index="i">
 <cfset thisVGroup = getVariants.vGroup[loop]>
 <cfoutput>
  <select name="v_#getVariants.vGroup#">
  <cfloop condition="getVariants.vGroup[loop] EQ thisVGroup AND loop NEQ
getVariants.recordCount">
   <option
value="#getVariants.varLabel[loop]#">#getVariants.varLabel[loop]#</option>
   <cfset loop = loop + 1>
  </cfloop>
 </cfoutput>
 </select><br>
</cfloop>



______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to