请问怎样获得一个控件的属性如(combobox,edit)等的Caption.下面的语句错在那里?
if trim(combobox1.Text)='出口日期' then
begin
  query1.Close;
  query1.SQL.Clear;
  query1.SQL.Add('select a.badhsl,a.bashsl,a.ylpm,a.ylbh,a.cppm,a.scbh,c.cpxh,c.ckrq,c.cksl,(c.cksl* a.badhsl*(1+a.bashsl)) as qqw from jck_dshk a,jck_backcpk b,jck_sjckcpk c where a.scbh=b.scbh and a.scbh=c.scbh');
query1.SQL.Add('ckrq='+maskedit1.text+'');
Query1.ExecSQL;
end//根据maskedit1的输入的参数作为查询条件进行查询。不知道怎么搞的就是出不来!请高手赐教!!