为什么调试时候老提示语法错误呢
string ls_sql
string ls_jfnd,ls_xm
ls_jfnd=trim(sle_1.text)
ls_xm=trim(sle_2.text)
if ls_jfnd<>"" and not isnull(ls_jfnd) then
ls_sql="c_yymx.bh='"+ls_jfnd+"'"
end if
if ls_xm<>"" and not isnull(ls_xm) then
if ls_sql="" or isnull(ls_sql) then
ls_sql="c_yymx.ypbh='"+ls_xm+"'"
else
ls_sql=ls_sql+" and c_yymx.ypbh='"+ls_xm+"'"
end if
end if
end if
dw_1.settransobject(sqlca)
IF dw_1.SetSQLSelect(ls_sql) = 1 THEN
dw_1.settransobject(sqlca)
dw_1.Filter()
ELSE
messagebox("系统提示","检索数据错误!")
我这程序有什么错误,怎么老提示语法错误呢