Trying to create and array of customer records. The code below spits out 12 rows of a duplicate record. I am not as fluent in .asp as I would like to be so tell me whats wrong here.
<% Dim aItems : aItems = XRT(oResponseXML, "item", 1) If UBound(aItems) > -1 Then Dim oItem, nCounter For Each oItem In aItems nCounter = nCounter + 1 %><tr class="<%= iif(nCounter Mod 2 = 0, "alternate", "") %>"><td><%= xLine(oResponseXML, "cCustName", 0) %></td><td><%= xLine(oResponseXML, "cCustPO", 0) %></td><td><%= xLine(oResponseXML, "cOrderNum", 0) %></td><td><%= xLine(oResponseXML, "cEstShipDate", 0) %></td><td><%= xLine(oResponseXML, "cShipAddr", 0) %></td><td><%= xLine(oResponseXML, "cShipCity", 0) %></td><td><%= xLine(oResponseXML, "cShipState", 0) %></td><td><%= xLine(oResponseXML, "cShipZip", 0) %></td><td><%= xLine(oResponseXML, "cShipMethod", 0) %></td><td><%= xLine(oResponseXML, "cActShipDate", 0) %></td></tr><% Next End If %>