📄 unit3.pas
字号:
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm3 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Button1: TButton;
Button2: TButton;
Button3: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form3: TForm3;
pass:string;
implementation
uses Unit8,Unit9,unit1,unit6;
{$R *.dfm}
procedure TForm3.Button1Click(Sender: TObject);
begin
Unit8.pass:=Label1.Caption;
Form8.Edit1.Text:=pass;
Form8.show;
end;
procedure TForm3.Button2Click(Sender: TObject);
begin
Unit9.pass:=pass;
with data.ADOQuery2 do
begin
close;
sql.Clear;
sql.Add('select * from 申请开课列表');
sql.Add('where 开课教师='''+pass+'''');
open;
Form9.show;
end
end;
procedure TForm3.Button3Click(Sender: TObject);
begin
close;
form1.show;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -