asp小菜问
来源:百度知道 编辑:UC知道 时间:2024/06/26 01:16:51
for i=0 to ubound(hepriceb)
a(i)=hepriceb(i)
next
我这写法有错误 大家帮我改下
我的意思是想把副直 a1=ss1 a2=ss2 a3=ss3 ax=ssx
a(i)错了 麻烦你们不懂就不要骗分
3楼以后的老大门帮看下
a(i)=hepriceb(i)
next
我这写法有错误 大家帮我改下
我的意思是想把副直 a1=ss1 a2=ss2 a3=ss3 ax=ssx
a(i)错了 麻烦你们不懂就不要骗分
3楼以后的老大门帮看下
for i=0 to ubound(hepriceb)
redim preserve a(i)
a(i)=hepriceb(i)
next
你的a1,a2....ax,是数组还是变量???
如果是数组的话在循环之前定义一个a数组就行了
Redim a(ubound(hepriceb))
ASP好像不可以有这样的赋值
你的这种写法是正确的,不过你要保证hepriceb也是一个数组...
a(i)需要先申明为动态数组!! 你个猪!