dim ary(2) ' <--- you may add more array here
ary(0)="item1"
ary(1)="item2"
ary(2)="item3"
for i=0 to UBound(ary)
AryX=ary(i)
qry = "SELECT value FROM settings WHERE name='"&AryX&"' "
rs.Open qry,conn
if not rs.EOF then
AryX = rs.FIELDS("value")
end if
rs.close
next
Dim Ary(1 to 50, 0 to 16, -2 to 8)
Ubound(Ary,1) 将返回50
Ubound(Ary,2) 将返回16
Ubound(Ary,3) 将返回8
Example Result:
..
...
...
[ 7/27/2008 ]
www learning school add more scripts
and tips memo
You are at >>3WS.EZER.COM >> 3WS.EZER.COM/ASP/ARRAY/UBOUND.ASP>>ASP
Helpful link::
SEO web tools :: Live PR | SERP checker