if ((combobox1.text='在职') or (combobox1.text='退休' and combobox6.Text='否')) then
''错误
[Error] unitfrmnew.pas(92): Operator not applicable to this operand type为什么呢
''错误
[Error] unitfrmnew.pas(92): Operator not applicable to this operand type为什么呢
if ((combobox1.text='在职') or ((combobox1.text='退休') and (combobox6.Text='否'))) then
if 后面不用加括号
后面那个要加上
if AnisSameText(combobox1.text, '在职') or (AnisSameTextcombobox1.text, '退休') and AnisSameText(combobox6.Text, '否')) then
可能会更好点