unit uKapital;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 =
class(TForm)
EdtKapital: TEdit;
EdtZinssatz: TEdit;
LstBox: TListBox;
BtnBerechnen: TButton;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
procedure BtnBerechnenClick(Sender: TObject);
procedure LstBoxClick(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.BtnBerechnenClick(Sender: TObject);
var kapital,zinssatz:extended;
begin
Kapital:=StrToFloat(edtkapital.text);
Zinssatz:=StrToFloat(edtzinssatz.text);
Zinssatz:= ((zinssatz/100)+1);
LstBox.Items.Add(FloatToStr(Kapital));
end;