Foxtable(狐表)用户栏目专家坐堂 → 两个集合如何查找对应位置的数据


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

主题:两个集合如何查找对应位置的数据

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


加好友 发短信 一级勋章
等级:MVP荣誉狐 帖子:5154 积分:31434 威望:0 精华:8 注册:2008/9/8 12:27:00
  发帖心情 Post By:2009/9/17 14:23:00 [显示全部帖子]

dim n as integer
dim bg as integer
dim a as string ="1,8,9,10,11,12,18,25,4,7,5"
dim aa as string ="100,200,300,400,500,600,700,800,900,1000,1100"
for i as integer = 0 to a.split(",").length -1
    if a.split(",")(i) > bg then
        bg = a.split(",")(i)
        n=i
    end if
next
output.show(aa.split(",")(n))     '结果显示:800
[此贴子已经被作者于2009-9-17 14:28:05编辑过]

 回到顶部