Foxtable(狐表)用户栏目专家坐堂 → 取关联子表行的问题


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

主题:取关联子表行的问题

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


加好友 发短信
等级:二尾狐 帖子:593 积分:5562 威望:0 精华:0 注册:2012/6/29 19:11:00
取关联子表行的问题  发帖心情 Post By:2017/5/15 12:19:00 [显示全部帖子]

请看以下代码,明明R1和currenttable.current是同一行,为什么R1取得的关联子表的行数为0呢?

 

Dim InputSRS As String = "BR1610-03347"

If Inputsrs <> "" Then

    Dim r1 As DataRow = DataTables("MainSchedule").SQLFind("SrsNO = '" & Inputsrs & "'") '   

If r1 IsNot Nothing Then

        Output.Show("identify =" & r1("_identify"))

        If r1.GetChildRows("ProcessSchdule") IsNot Nothing Then

           Output.Show(r1.GetChildRows("ProcessSchdule").Count)            

        End If

End If

End If

 

Output.Show("identify =" & CurrentTable.Current("_identify"))

Output.Show(CurrentTable.Current.DataRow.GetChildRows("ProcessSchdule").Count)


此主题相关图片如下:微信截图_20170515100924.png
按此在新窗口浏览图片

 回到顶部