以文本方式查看主题

-  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=65431)

--  作者:yangweicheng
--  发布时间:2015/3/16 12:32:00
--  设置
你好:
 我设置的表在主表和关联表的行都锁定了,怎样设置在主表行在被锁定的情况下,关联表不可再添加行操作

--  作者:y2287958
--  发布时间:2015/3/16 12:42:00
--  
http://www.foxtable.com/help/topics/2649.htm
--  作者:Bin
--  发布时间:2015/3/16 13:37:00
--  
CurrentChanged事件

if e.datarow.locked then
   Tables("子表名称").AllowEdit=False
end if

DataRowLockedChanged 事件


if e.datarow.locked then
   Tables("子表名称").AllowEdit=not e.datarow.locked
end if

--  作者:有点甜
--  发布时间:2015/3/16 14:05:00
--  
  呃,你不是说 主表和关联表都设置成锁定了么?锁定以后,就是不能编辑的啊