Foxtable(狐表)用户栏目专家坐堂 → HttpRequest


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

主题:HttpRequest

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


加好友 发短信
等级:五尾狐 帖子:1165 积分:8129 威望:0 精华:0 注册:2015/3/30 10:44:00
HttpRequest  发帖心情 Post By:2018/1/25 17:43:00 [只看该作者]

Case "fhdh.htm"
        If e.getValues.Count > 0 Then
            Dim Multi As String = e.getValues("fhdh")
            Dim jo As New JObject
            Dim ja As New JArray
            jo(Multi) =  ja
            Dim drs As List(of DataRow) = DataTables("库存明细表").SQLSelect("U8发货单号 = '" & Multi & "'")
            If drs.count > 0  Then
                Dim Index As Integer = 0
                For Each dr As DataRow In drs
                    ja.Add(New JObject)
                    ja(Index)("SN") = dr("SN").Tostring()
                    ja(Index)("MAC") = dr("MAC").Tostring()
                    ja(Index)("物料编码") = dr("物料编码").Tostring()
                    ja(Index)("订单号") = dr("订单号").Tostring()
                    ja(Index)("U8发货单号") = dr("U8发货单号").Tostring()
                    ja(Index)("U8出库单号") = dr("U8出库单号").Tostring()
                    ja(Index)("货运单号") = dr("货运单号").Tostring()
                    Index = Index + 1
                Next
            Else
                ja(0)("SN") = ""
                ja(0)("物料编码") = ""
                ja(0)("订单号") = ""
                ja(0)("U8发货单号") = ""
                ja(0)("U8出库单号") = ""
                ja(0)("货运单号") = ""
            End If
            e.WriteString(jo.ToString)
        End If
错误所在事件:项目,HttpRequest
详细错误信息:
索引超出范围。必须为非负值并小于集合大小。
参数名: index


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


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

ja.Add(New JObject) 之后,才能用 0、1、2、3 这些

 回到顶部