看代码,解释一下 里面的 问题!
dingd 2002-10-24 07:45:33 以下为w_firmcode窗口的ue_query事件
string ls_filter
ls_filter = ""
if len(trim(em_1.text)) > 0 Then
ls_filter = "trim(FirmCode) >=" + "'"+trim(em_1.text) + "'"
end if
//不理解FirmCode
也不理解ls_filter = "trim(FirmCode) >=" + "'"+trim(em_1.text) + "'"
作何用?
if len(Trim(em_2.text)) > 0 Then
if len(ls_filter)> 0 then
ls_filter = ls_filter + " AND "
end if
ls_filter = ls_filter + "trim(FirmCode) <=" + "'"+trim(em_2.text) + "'"
end if
//同样 ls_filter = ls_filter + "trim(FirmCode) <=" + "'"+trim(em_2.text) + "'"
是???
if dw_2.SetFilter(ls_filter) = -1 Then
MessageBox("参数设置","设置过滤失败")//这个对话框是什么条件下会弹出????
return
end if
dw_2.Setredraw(false)
dw_2.Filter()
dw_2.Setredraw(true)