📄 unit1.~pas
字号:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, StdCtrls, ExtCtrls, DB, DBTables;
type
TForm1 = class(TForm)
Panel1: TPanel;
Label1: TLabel;
Btn_stud: TButton;
Btn_change: TButton;
Bnt_rp: TButton;
Panel2: TPanel;
Btn_query: TButton;
BitBtn1: TBitBtn;
Table1: TTable;
procedure FormCreate(Sender: TObject);
procedure Btn_studClick(Sender: TObject);
procedure Btn_changeClick(Sender: TObject);
procedure Bnt_rpClick(Sender: TObject);
procedure Btn_queryClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses Unit2, Unit3, Unit4, Unit5;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
try
Table1.Open;
except
Application.MessageBox('请确认用户名密码!','数据库连接错误',mb_ok);
Application.Terminate;
end;
end;
procedure TForm1.Btn_studClick(Sender: TObject);
begin
form2.showmodal;
end;
procedure TForm1.Btn_changeClick(Sender: TObject);
begin
form3.showmodal
end;
procedure TForm1.Bnt_rpClick(Sender: TObject);
begin
form4.showmodal
end;
procedure TForm1.Btn_queryClick(Sender: TObject);
begin
form5.showmodal
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -