以文本方式查看主题

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

--  作者:tld
--  发布时间:2020/7/3 18:58:00
--  刷新表中的某一行
老师,Dim dr As DataRow = Tables("流水").datatable..SQLfind("[委托编号] = \'20200607\'")
dr行在流水表中存在。dr行在后台更新后,希望在table(“流水”)中显示更改后的值。

如何不用loadfilter整个表,而只刷新dr?

谢谢老师!

--  作者:tld
--  发布时间:2020/7/4 1:14:00
--  
用appendload 的方法也较慢。不知道有没有更高效的方法。
--  作者:有点蓝
--  发布时间:2020/7/4 10:10:00
--  
Dim dr As DataRow = datatables("流水")..find("[委托编号] = \'20200607\'")
if dr isnot nothing then dr.load
[此贴子已经被作者于2020/7/4 10:09:54编辑过]

--  作者:tld
--  发布时间:2020/7/4 12:37:00
--  
老师,我用sqlfind替换find,发生错误。提示:不存在名称为“” 的datatable。为什么呢?
Dim dr As DataRow = datatables("流水").sqlfind("[委托编号] = \'20200607\'")
if dr isnot nothing then dr.load



--  作者:有点蓝
--  发布时间:2020/7/4 13:28:00
--  
这里只能使用find。同时也完全没有必要使用sqlfind