asp数组问题
如题,
dim n,m
n=6
m=13
redim admin_menu(n,m)
admin_menu(0,0)= "常规管理 "
admin_menu(0,1)= " <a href= " "toUser.asp " " target=main> 给用户发邮件 </a> "
admin_menu(0,2)= " <a href= " "bulletBoardManage.asp " " target=main> 布告板管理 </a> "
'//会员管理
admin_menu(1,0)= "会员管理 "
admin_menu(1,1)= " <a href= " "schoolManage.asp " " target=main> 学校管理 </a> "
admin_menu(1,2)= " <a href= " "teacherManage.asp " " target=main> 老师管理 </a> "
admin_menu(1,3)= " <a href= " "teachClass.asp " " target=main> 执教班级管理 </a> "
admin_menu(1,4)= " <a href= " "studentsManage.asp " " target=main> 学生管理 </a> "
admin_menu(1,5)= " <a href= " "payUserManage.asp " " target=main> 收费会员管理 </a> "
admin_menu(1,6)= " <a href= " "backMemberManage.asp " " target=main> 后台收费会员 </a> "
admin_menu(1,7)= " <a href= " "tempUserManage.asp " " target=main> 临时收费会员 </a> "
这是一段代码,我想在前台调用数组admin_menu
<%
dim i
for i =0 to 6
if isNull(admin_menu(i,0))=true then exit for
%>
<TR >
<TD background=Images/admin_left_ <%response.Write i+1%> .gif height=25 style= "cursor:hand " class=admin_menu_title id=admin_menuTitle1 onClick= "showsubadmin_menu( <%response.Write i%> ) ">
<strong> <font color= "#6699CC "> <%response.Write admin_menu(i,0)%> </font> </strong>
</TD>
</TR>
<TR >
<TD id= 'subadmin_menu <%response.Write i%> '> <DIV class=sec_menu style= "WIDTH: 135px ">
<table cellpadding=0 cellspacing=0 align=center width=135>
<%
dim j
for j=0 to j+1 '就是这个地方,我是要使j <二维的第二个数。然后循环输出。
if isNull(admin_menu(i,j))=true then exit for
response.Write j
response.Write " <tr> "
response.Write " <td height=20> · "&admin_menu(i,j)& " </td> "
response.Write " <tr> "
next
------解决方案--------------------你前面不是有m,和n吗?
------解决方案--------------------ubound(admin_menu,i)i 只能是1或2,i的含义是第几维。
------解决方案--------------------dim在for 循环中?
程序中跟踪i和j的值,
在数组中初始化时显示所有的值,看看.
------解决方案--------------------怎么看着这么乱呢?
你把完整的代码帖一下。
------解决方案--------------------