if (ComboBox3.Text<>'') and ((DateTimePicker1.DateTime<>strtodate('1899-12-30') or (edit4.Text<>'') or (edit3.Text<>'') or (edit2.Text<>'') or (ComboBox2.Text<>'') or (ComboBox1.Text<>'') or (edit1.Text<>'')) then
这一句哪里错了?~编译的时候提示错误为: Operator not applicable to this operand type帮忙看看是什么问题
这一句哪里错了?~编译的时候提示错误为: Operator not applicable to this operand type帮忙看看是什么问题
把这项
DateTimePicker1.DateTime<>strtodate('1899-12-30')
去掉试试。
if (ComboBox3.Text<>'') and ((DateTimePicker1.DateTime<>strtodate('1899-12-30')) or (edit4.Text<>'') or (edit3.Text<>'') or (edit2.Text<>'') or (ComboBox2.Text<>'') or (ComboBox1.Text<>'') or (edit1.Text<>'')) then