if form2.Caption='化学成分查询' and  combobox1.text='混合料厂' then
begin

解决方案 »

  1.   

    if (form2.Caption='化学成分查询') and ( combobox1.text='混合料厂') then
      

  2.   

    if (form2.Caption = '化学成分查询') and  (combobox1.text = '混合料厂') then 
    begin
    //
    end;
      

  3.   

    if (form2.Caption='化学成分查询') and  (combobox1.text='混合料厂') then 
    ...
    如果combobox1是表单FORM2的,则还要
    if (form2.Caption='化学成分查询') and  (form2.combobox1.text='混合料厂') then 
    ...
    本表单的则不用加
      

  4.   

    if (  ) and (    ) then
    beginend;来晚了,sigh!