以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  请教重新加载某一行  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=146782)

--  作者:hb8888
--  发布时间:2020/3/2 13:54:00
--  请教重新加载某一行
大师:请问我用SQLfind语句条件查询后台某一行数据后,对条件中的某一列数据进行了修改,我用重新加载此行的语句怎么写?还是要保存 _identify?再条件_identify加载?
--  作者:有点蓝
--  发布时间:2020/3/2 14:58:00
--  
使用_identify找到已经加载的行

Dim dr As DataRow
dr = DataTables("订单").Find("_identify=1")
If dr IsNot Nothing Then \'如果找到的话
    dr.load
Else
    DataTables("订单").AppendLoad("_identify=1")
End If