数组的问题,请教
小弟想把从数据库中提取的,类似于L;M;X;C这样的不知长度限制的文本字符转成
<select name="select">
<%
a="l;m;x;c"
a=Replace(a,";","','")
dim a
a=Array(a)
l=UBound(a)
for i=0 to l
%>
<option value="<%=a(i)%>"><%=a(i)%></option>
<%next%>
</select>
老是出错<%
a="l;m;x;c"
a=Replace(a,";","','")
dim a
a=Array(a)
l=UBound(a)
for i=0 to l
%>
<option value="<%=a(i)%>"><%=a(i)%></option>
<%next%>
</select>
[此贴子已经被作者于2006-3-11 3:08:14编辑过]