endsnow
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Edit1: TEdit;
    Edit2: TEdit;
    Memo1: TMemo;
    MaskEdit1: TMaskEdit;
    MaskEdit2: TMaskEdit;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  memo1.Lines.Add(\'姓名:\'+edit1.Text);
  memo1.Lines.Add(\'联系电话:\'+maskedit1.Text);
  memo1.Lines.Add(\'出生年月:\'+maskedit2.Text);
  memo1.Lines.Add(\'工作单位:\'+edit2.Text);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  edit1.Text := \'\';
  maskedit1.Text := \'\';
  maskedit2.Text := \'\';
  edit2.Text := \'\';
end;

end.

 

分类:

技术点:

相关文章:

  • 2021-12-05
  • 2021-11-27
  • 2021-06-28
  • 2021-11-19
  • 2021-07-28
  • 2021-12-08
  • 2021-07-08
  • 2021-10-22
猜你喜欢
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-11-02
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案