IF
LOGINFORM.Edit1.Text = '1111' AND
LOGINFORM.Edit2.Text = '1111'
THEN
BEGIN
MAINFORM.Button6.Enabled:=TRUE;
MAINFORM.Button6.Visible:=TRUE;
END
ELSE
BEGIN
MAINFORM.Button6.Enabled:=FALSE;
MAINFORM.Button6.Visible:=FALSE;
END;
问题显示:[Error] Unit5.pas(41): Operator not applicable to this operand type
[Fatal Error] Unit1.pas(35): Could not compile used unit 'Unit5.pas'
LOGINFORM.Edit1.Text = '1111' AND
LOGINFORM.Edit2.Text = '1111'
THEN
BEGIN
MAINFORM.Button6.Enabled:=TRUE;
MAINFORM.Button6.Visible:=TRUE;
END
ELSE
BEGIN
MAINFORM.Button6.Enabled:=FALSE;
MAINFORM.Button6.Visible:=FALSE;
END;
问题显示:[Error] Unit5.pas(41): Operator not applicable to this operand type
[Fatal Error] Unit1.pas(35): Could not compile used unit 'Unit5.pas'
(LOGINFORM.Edit1.Text = '1111') AND
(LOGINFORM.Edit2.Text = '1111')
THEN