如何将两个一维字符串数组A和B合并到一个新一维数组C中? 用VB怎么实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 dim C() dim I as integer,J as Integerredim C(ubound(A)+ubound(B)+1) for i=0 to Ubound(A)c(i)=A(i)nextfor j=i to Ubound(b)+ic(j)=b(j-i)next dim C() dim I as integer,J as Integerredim C(ubound(A)+ubound(B)+1) for i=0 to Ubound(A) c(i)=A(i)next ifor j=i to Ubound(b)+i c(j)=b(j-i)next j 方法很多,比如:CopyMemory,循环....还有取巧的方法: dim tmp as string dim c() as string tmp=join(a) & chr(32) & join(b) c=split(tmp)看具体应用决定具体方法.... Access数据库程序由简体转成繁体 VB里面哪里可以放置全局变量? 关于窗体在最上面显示的问题 SQLExecDirect()函数 访问SQL数据库!!! 去除空格的函数是什么??? API问题:请举个CreatePolygonRgn的例子。希望有说明,高分送上。 有关在 EXCEL 中 VBA 我做了一套进销存(以后再加上财务人事等)软件,是电子芯片行业的,还没起名呢,大家帮我起个名吧! 怎么根据文件名,让文件列表框中的相应文件高亮显示 高难问题: 登录日志窗体求助 支持行列拖动、换肤的表格控件?
dim I as integer,J as Integer
redim C(ubound(A)+ubound(B)+1)
for i=0 to Ubound(A)
c(i)=A(i)
nextfor j=i to Ubound(b)+i
c(j)=b(j-i)
next
dim I as integer,J as Integerredim C(ubound(A)+ubound(B)+1)
for i=0 to Ubound(A)
c(i)=A(i)
next ifor j=i to Ubound(b)+i
c(j)=b(j-i)
next j
还有取巧的方法: dim tmp as string
dim c() as string
tmp=join(a) & chr(32) & join(b)
c=split(tmp)看具体应用决定具体方法....