Foxtable(狐表)用户栏目专家坐堂 → [求助] 数组运用,哪里错了?


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

主题:[求助] 数组运用,哪里错了?

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


加好友 发短信
等级:童狐 帖子:261 积分:2195 威望:0 精华:0 注册:2015/5/15 14:51:00
[求助] 数组运用,哪里错了?  发帖心情 Post By:2018/5/16 19:16:00 [只看该作者]

Dim ms() As String = {0,1,2,3,4}
Dim ms1() As String = {"冷藏柜","冰箱","电脑","电视机","电灯"}
Tables("表A").AddNew(5)
Dim r As Row = Tables("表A").Current
For i As Integer = 0 To ms.Length -1
    Tables("表A").Rows(i)Cols("第一列") = ms1(i)
Next

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/16 19:28:00 [只看该作者]


Dim ms1() As String = {"冷藏柜","冰箱","电脑","电视机","电灯"}
For i As Integer = 1 To 5
    Dim nr As Row = Tables("表A").addnew
    nr("第一列") = ms1(i-1)
Next

 回到顶部