if dwo.name = 'chk' then
for j = 1 to dw_taxrate.rowcount()
if data = '0' then continue
ls_code = this.object.taxtypecode[row]
if pos( ls_code, ls_result ) = 0 then ls_result += ls_code + ' '
next
for ll_in = 1 to ll_pos
ls_delcode = dw_taxrate.object.taxcode[ll_in]
for i = 1 to dw_querytaxrate.rowcount()
ls_taxcodedel = dw_querytaxrate.object.taxcode[i]
if ls_delcode = ls_taxcodedel then
dw_taxrate.deleterow(ll_in)
end if
next
end if
应该是这样
for ll_in = 1 to ll_pos
if ls_delcode = "" then
ls_delcode = dw_taxrate.object.taxcode[ll_in]
for i = 1 to dw_querytaxrate.rowcount()
ls_taxcodedel = dw_querytaxrate.object.taxcode[i]
if ls_delcode = ls_taxcodedel then
dw_taxrate.deleterow(ll_in)
end if
next
end if