Sign in to follow this  
sl@ckw@re

Programa Para Concatenar Nome

Recommended Posts

Esse programa pode ser feito tanto no Delphi quanto no Lazarus

esses são os componentes necessários:

Label1,Labe2,Label3,Edit1,Edit2,Edit3,Button1,Button2,Button3.

Primeiramente vamos nomear os componentes:

Label1=Nome

Label2=Sobrenome

Label3=Resultado

Button1=Concatenar

Button2=Limpar

Button3=Sair

unit Unit1;

interface

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

type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
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
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
Edit3.text := Edit1.text+ ' '+Edit2.text;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
Edit1.text :=' ';
Edit2.text :=' ';
Edit3.text :=' ';
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
Form1.close
end;

Share this post


Link to post
Share on other sites

Opa

Conforme contato via MP, movendo para tutoriais e dicas...

abraços

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this