nested for
Hello all
I need 2 nested for that compare each i with each a(j) and if that i wasn't in a() array write that i.I wrote the code below but it repeats each record 14 times:(14 is half of i(s).the total i quantitties are 28)
for i=23 to 50
For j=0 to Ubound(a)
if a(j)=i then
j=Ubound(a)
else
if j=Ubound(a) then
response.write(i)
end if
end if
next
next
would you please tell me where is the problem?
thank you
|