以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]数组循环写出  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=94155)

--  作者:铜豆
--  发布时间:2016/12/16 22:25:00
--  [求助]数组循环写出
Dim Arys As List(Of String())
Arys = DataTables("百度搜索引擎").GetValues("日期|搜索引擎")
For Each Ary As String() In Arys
如何把数据日期循环在A列和B列
Next


--  作者:狐狸爸爸
--  发布时间:2016/12/17 8:51:00
--  
Dim Arys As List(Of String())
Arys = DataTables("百度搜索引擎").GetValues("日期|搜索引擎")
For Each Ary As String() In Arys
    output.show("日期:" & ary(0) & " 搜索引擎:" & ary(1))
Next

--  作者:铜豆
--  发布时间:2016/12/17 10:20:00
--  
狐爸爸我把循环出来的数据填在B表的日期列和搜索引擎列,是直接填写在里面不是output.show循环出来


--  作者:狐狸爸爸
--  发布时间:2016/12/17 10:22:00
--  
Dim Arys As List(Of String())
Arys = DataTables("百度搜索引擎").GetValues("日期|搜索引擎")
For Each Ary As String() In Arys
     Dim dr AS datarow = DataTables("表B").AddNew()
     dr("日期")=ary(0)
     dr("搜索引擎")= ary(1))
Next