以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]foxtable调用webservice返回1维数组问题,求教  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=76844)

--  作者:jframe
--  发布时间:2015/11/6 8:59:00
--  [求助]foxtable调用webservice返回1维数组问题,求教
用ft调用web service接口里的getMyRequestBySearch,正确应该是返回一个表(多维数组),在SQL跟踪到的结果是

图片点击可在新窗口打开查看此主题相关图片如下:qq图片20151106084808.png
图片点击可在新窗口打开查看
但是在foxtable里面,却提示是1维数组,
Dim rb() = ft.getMyRequestBySearch(id,"","","")     \'提示等于号后面的是1维数组,getMyRequestBySearch是web service里的
能取得createdate列(即表中第1列)的值,不能取其他列的值,全部都是空值,rb.length得到的数据行数是正确的.
For i As Integer = 0 To rb.Length - 1
            str1 = rb(i).createdate & str1
Next
msgbox(str1)

求教怎么接收数据.


问题补充
Dim i维数 As Integer = ft.getMyRequestBySearch(id,"","","").Rank
msgbox(i维数)
得到的结果是1,webservice接口应该没有问题的才对.

[此贴子已经被作者于2015/11/6 9:26:50编辑过]

--  作者:Hyphen
--  发布时间:2015/11/6 9:19:00
--  
试试 Dim rb(,) = ft.getMyRequestBySearch(id,"","","")
--  作者:大红袍
--  发布时间:2015/11/6 9:22:00
--  

Dim rb = ft.getMyRequestBySearch(id,"","","")  

For i As Integer = 0 To rb.Length - 1
    For j As Integer = 0 To rb(i).Length - 1

        msgbox(12345)

    Next
Next

------------------

 

Dim a(1) As object
Dim b() As String = {"1", "2"}
a(0) = b
a(1) = b

msgbox(a(1)(0))
msgbox(a(1)(1))

For i As Integer = 0 To a.Length - 1
    For j As Integer = 0 To a(i).length - 1

        msgbox(a(i)(j) )

    Next
Next