Foxtable(狐表)用户栏目专家坐堂 → [求助]二维数组问题


  共有2432人关注过本帖树形打印复制链接

主题:[求助]二维数组问题

帅哥哟,离线,有人找我吗?
大红袍
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/10/7 12:08:00 [显示全部帖子]

'''...
dim str as string = "2,5,7,8" & vbcrlf & "5,7,8,9" & vbcrlf & "2,9,0,7"
msgbox(str)
dim ary1() as string = str.Replace(chr(10),"").Split(chr(13))
dim len1 as integer = ary1.length-1
dim len2 as integer = ary1(0).Split(",").length-1
dim bary(len1, len2)
for i as integer = 0 to len1
    dim ary2() as string = ary1(i).Split(",")
    for j as integer = 0 to len2
        bary(i,j) = ary2(j)
    next
next

msgbox(bary(1,2))


 回到顶部