unit5.pas

来自「考试系统,有学生考试,查询成绩,老师管理题库,生成试卷,查询成绩功能.」· PAS 代码 · 共 46 行

PAS
46
字号
unit Unit5;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls, jpeg;

type
  TForm5 = class(TForm)
    Image1: TImage;
    Label2: TLabel;
    ComboBox1: TComboBox;
    Label4: TLabel;
    Bevel1: TBevel;
    Label1: TLabel;
    procedure Label2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form5: TForm5;
   ke:integer;
implementation

uses Unit6;

{$R *.dfm}

procedure TForm5.Label2Click(Sender: TObject);
begin
if  ComboBox1.Text='数学' then
      ke:=0;
if  ComboBox1.Text='英语'  then
      ke:=1;
if  ComboBox1.Text='语文' then
      ke:=2;
Form5.Hide;
Form6.show;
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?