procedure TForm2.Button1Click(Sender: TObject); begin Label1.Caption := IntToStr( Length(Edit1.Text)+Length(Edit2.Text) ); end;