hello all,
i m trying to loop an 2d array with in a 2d array. it is working fine but it is not displaying as i wanted. following is my code
the inner loop is getting repeated because of the outer loop.(how to check that?) and i need to display the rows as follows
pl help me. thanx
i m trying to loop an 2d array with in a 2d array. it is working fine but it is not displaying as i wanted. following is my code
Code:
Dim iRowLoop, iColLoop, upto For iRowLoop = 0 to UBound(mytable,2) 'Earnings row%> <tr><td width="20%"> </td> <% For iColLoop = 0 to UBound(mytable, 1) 'Earnings col%> <td width="20%"><span class="fc1-2"><%=mytable(iColLoop, iRowLoop)%></span></td> <% Next Dim idednRow, idednCol For idednRow = 0 to UBound (mytable1, 2) 'deduction row For idednCol = 0 to UBound (mytable1, 1) 'deduction col%> <td width="20%"><span class="fc1-2"><%=mytable1(idednCol, idednRow)%></span></td> <% Next Next Next%> </tr>
Code:
<tr><td>earnings</td><td>deductions</td></tr>
Comment