unit1.pas

来自「delphi课程设计的内容,包括源代码,文本的设计,菜单的设计等.」· PAS 代码 · 共 44 行

PAS
44
字号
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Edit1: TEdit;
    Edit2: TEdit;
    Edit3: TEdit;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
begin
    if edit1.Text='' then
    showmessage('Please input your name!')
     else if edit2.text='' then
          showmessage('Please input your password!')
          else if edit3.text='' then
          showmessage('Please input your password again!')
           else showmessage('welcome!');
end;

end.

⌨️ 快捷键说明

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