MRV sordu
iki sayyı toplayıp listboxa atcam hata veryo hep,yardımcı olur musunuz
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
CheckBox1: TCheckBox;
RadioButton1: TRadioButton;
Edit1: TEdit;
Edit2: TEdit;
ListBox1: TListBox;
Edit3: TEdit;
procedure RadioButton1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
a,b,res:integer;
implementation
{$R *.dfm}
procedure TForm1.RadioButton1Click(Sender: TObject);
begin
if radiobutton1.Checked=true then
Edit3.Text:=intTostr(strToint(Edit1.text)+strToint (Edit2.text));
ListBox1.Items.Add(Edit3.Text);
end;
else
begin
Edit3.Text:=intTostr(strToint(Edit1.text)*strToint (Edit2.text));
ListBox1.Items.Add(Edit3.Text);
end;
end.