Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

asp classic array error

$
0
0

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
%>




Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>