以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]4.19版的Load动作有Bug.  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=49466)

--  作者:pc005637
--  发布时间:2014/4/18 13:21:00
--  [求助]4.19版的Load动作有Bug.
窗口表,SQL数据源.

bug表现:如果在表的Afterload代码中有:

Dim t As Table = Tables(e.Form.Name & "_初诊")
Dim t1 As Table = Tables(e.Form.Name & "_项目")

e.DataTable.LoadChildren(t1.Name, "初诊登记号", "初诊登记号")

红字代码会出现,死机.

附含load的代码:

Dim dt As DataTable = DataTables(e.Form.Name & "_初诊")
Dim text As String = "李"
If text IsNot Nothing Then
    dt.LoadFilter = "姓名 Like \'%" & text & "%\'"
    dt.Load
End If

--  作者:blackzhu
--  发布时间:2014/4/18 13:46:00
--  
e.DataTable.LoadChildren(t1, "初诊登记号", "初诊登记号")
--  作者:有点甜
--  发布时间:2014/4/18 13:55:00
--  
 经测试,确实有这样的问题。
--  作者:pc005637
--  发布时间:2014/4/18 13:56:00
--  [求助]4.19版的Load动作有Bug.
t1.Name 是 子表的名字啊.
不是t1

--  作者:狐狸爸爸
--  发布时间:2014/4/18 13:56:00
--  
收到
--  作者:狐狸爸爸
--  发布时间:2014/4/18 14:10:00
--  

搞定,明天重新下载吧。

怪不得好多人说升级后会死机,原来是这么回事。

 

图片点击可在新窗口打开查看