Показать сообщение отдельно

  #5  
Старый 02.08.2008, 23:26
diznt
Постоянный
Регистрация: 31.01.2008
Сообщений: 643
Провел на форуме:
6128108

Репутация: 445


По умолчанию

Код:
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    txtA: TEdit;
    txtB: TEdit;
    txtC: TEdit;
    txtR: TEdit;
    Button1: TButton;
    Button2: TButton;
    procedure Button2Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

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

procedure TForm1.Button1Click(Sender: TObject);
var
 A,B,C,R   : integer;
begin
 A:=StrToInt(txtA.Text);
 B:=StrToInt(txtB.Text);
 C:=StrToInt(txtC.Text);

 R:=a+b+c

 txtR.Text:=IntToStr(r)
end;

end.
Хочу компелить так он мне пишет это! (и указывает красным фоном на строку txtR.Text:=IntToStr(r) )



Не могу понять в чем проблема и как ее решить
 
Ответить с цитированием