?? unit1.~pas
字號:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, DBCtrls, Mask, jpeg, ExtCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Image1: TImage;
Label1: TLabel;
Label2: TLabel;
Button2: TButton;
Edit1: TEdit;
ComboBox1: TComboBox;
Label3: TLabel;
Bevel1: TBevel;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses Unit2, Unit3, Unit4;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
if combobox1.text='包爾固德' then
if edit1.Text='handsome1' then
begin
form1.Hide;
form2.show //題庫管理
end
else
begin
edit1.SetFocus;
messagedlg('you are wrong',mterror,[mbok],0);//包爾固的是程序設(shè)計者中
end//負(fù)責(zé)管理數(shù)據(jù)庫的
else
if combobox1.text='劉凌云' then
if edit1.Text='handsome2' then
begin
form1.hide;
form3.show//手動生試卷
end
else
begin
edit1.SetFocus;
messagedlg('you are wrong',mterror,[mbok],0);
end;
if combobox1.text='王冉'then
if edit1.text='handsome3'then
begin
form1.hide;
form3.show
end
else
begin
edit1.SetFocus;
messagedlg('you are wrong',mterror,[mbok],0);//其他人最多只能生成試卷
end;
combobox1.Text:='';
edit1.Text:='';
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
form1.Close;
end;
end.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -