611
社区成员
发帖
与我相关
我的任务
分享
string ls_hwbh
string ls_hwmc_new
string ls_hwmc_old
int ii
for ii = 1 to tab_1.tabpage_1.dw_shd.rowcount()
ls_hwmc_new = tab_1.tabpage_1.dw_shd.getitemstring(ii,"hwmc",primary!,false)
ls_hwmc_old = tab_1.tabpage_1.dw_shd.getitemstring(ii,"hwmc",primary!,true)
next
messagebox('',ls_hwmc_new)
messagebox('',ls_hwmc_old)
if ls_hwmc_new <> ls_hwmc_old then
is_cwlog_new = is_cwlog_new + "货物名称由【"+ls_hwmc_old +"】改为【"+ls_hwmc_new +"】"
end if
但是多余一行的情况的话 修改第一条记录的时候就没法记录(is_cwlog_new 为空)int li_i,li_colcount
string ls_colname,ls_coltype
dwItemStatus l_status
li_colcount = long(dw_1.describe("DataWindow.Column.Count"))
for li_i = 1 to li_colcount
ls_colname = dw_1.describe('#' + string(li_i) + '.name')
if lower(trim(ls_colname)) = 'p_sup_no' then exit
next
l_status = dw_1.GetItemStatus(dw_1.getrow(), li_i, Primary!)
if l_status = DataModified! then
messagebox('提示','供应商已经变更!')
end if
以上只是判断一个字段而已,我要的是整个Dw的所有字段