怎么知道数据窗口中哪些行修改了?
long i
dwitemstatus lds_status
for i = 1 to dw_name.rowcount()
lds_status = dw_name.getitemstatus( i, 0, primary! )
if lds_status <> notmodified! then
//本行修改了
end if
next
本文介绍了一种方法来确定数据窗口中的哪些行被修改,通过使用长整型变量、数据窗口名称和循环遍历行数,判断特定状态(如notmodified!)是否发生变化,从而识别出已修改的行。
long i
dwitemstatus lds_status
for i = 1 to dw_name.rowcount()
lds_status = dw_name.getitemstatus( i, 0, primary! )
if lds_status <> notmodified! then
//本行修改了
end if
next
9280

被折叠的 条评论
为什么被折叠?