以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  批量审核  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=141328)

--  作者:yifan3429
--  发布时间:2019/9/26 21:34:00
--  批量审核
父表审核为已审核 (罗基列) 子表的对应id 审核全部为已审核(罗基列)

[此贴子已经被作者于2019/9/26 21:35:04编辑过]

--  作者:狐狸爸爸
--  发布时间:2019/9/27 8:06:00
--  
父表DataColChanged:

if e.DataCol.Name = "审核" Then
   if e.NewValue = True then
       For each cr AS DataRow in e.DataRow.GEtChildRows("子表") Then     
             cr("审核") = True
        Next
    End if
End if


参考:
http://www.foxtable.com/webhelp/topics/2649.htm

--  作者:yifan3429
--  发布时间:2019/9/27 14:14:00
--  
---------------------------
错误
---------------------------
编译错误:应为语句结束。



错误代码:For Each cr As DataRow In e.DataRow.GEtChildRows("凭证明细") Then
---------------------------
确定   
---------------------------


--  作者:有点蓝
--  发布时间:2019/9/27 14:20:00
--  
For each cr AS DataRow in e.DataRow.GEtChildRows("子表") ,去掉后面的then,基础的语法问题