if ((combobox1.text='在职') or (combobox1.text='退休' and combobox6.Text='否')) then
''错误
[Error] unitfrmnew.pas(92): Operator not applicable to this operand type为什么呢

解决方案 »

  1.   

    写法错了..
    if ((combobox1.text='在职') or ((combobox1.text='退休') and (combobox6.Text='否'))) then
      

  2.   

    if (combobox1.text='在职') or ((combobox1.text='退休' and combobox6.Text='否')) then
    if 后面不用加括号
    后面那个要加上
      

  3.   

    up
    if AnisSameText(combobox1.text, '在职') or (AnisSameTextcombobox1.text, '退休') and AnisSameText(combobox6.Text, '否')) then
    可能会更好点