以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助] 数组运用,哪里错了? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=119049) |
-- 作者:dxjwlf -- 发布时间: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
|
-- 作者:有点甜 -- 发布时间: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 |