日期:2014-05-17  浏览次数:20922 次

我是新手,请问一个数组分离的问题
用asp做“批量更改”,获取一个数组类似

su(i)=("aa--11","bb--22","cc--33","dd--44","ee--55","ff--66","gg--77","hh--88")

能否分离成两个数组?

x(i)=("aa","bb","cc","dd","ee","ff","gg","hh")

y(i)=("11","22","33","44","55","66","77","88")

代码怎么实现?

------解决方案--------------------
可以实现,数组循环,然后分割
------解决方案--------------------
忘写打印出来的结果了,就是
aa,bb,cc,dd,ee,ff,gg,hh
11,22,33,44,55,66,77,88
这样的
探讨

su=array("aa--11","bb--22","cc--33","dd--44","ee--55","ff--66","gg--77","hh--88")
aa=""
bb=""
for i=0 to 7
sus=split(su(i),"--")
aa=aa&","&sus(0)
bb=bb&","&sus(1)
next
aa=mid……