Autor Beitrag
raiguen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 374

WIN 2000prof, WIN XP prof
D7EP, MSSQL, ABSDB
BeitragVerfasst: Do 04.05.06 14:54 
Moin :-)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
procedure TFormaufzinsungsfaktoren.ButtonRechnenClick(Sender: TObject);
begin
endjahr:=strtoint(editjahr.Text);
canvas.textout(300,100,'Aufzinsungsfaktoren');
canvas.textout(300,150,' Jahre 5% 6% 7% 8% 9%');
x:=320;
  for p:=5 to 9 do begin
    x:=x+60; 
    y:=190;
    faktor:=1;
    for i:=1 to endjahr do begin
      faktor:=faktor+(1+p/100);
      y:=y+20;
      canvas.textout(300,y,inttostr(i));
      canvas.textout(x,y,formatfloat('0.0000',faktor));
    end;
  end;
end;


//EDIT ein bisll zu spät :-((


Zuletzt bearbeitet von raiguen am Do 04.05.06 14:57, insgesamt 1-mal bearbeitet
Lacoste Threadstarter
Hält's aus hier
Beiträge: 8



BeitragVerfasst: Do 04.05.06 14:56 
Danke =) Sind p,i .... eigentlich immer schon reservierte Werte für irgendetwas? Wenn ja wo kann ich das nachlesen?
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Do 04.05.06 15:01 
user profile iconLacoste hat folgendes geschrieben:

ausblenden Delphi-Quelltext
1:
2:
var endjahr, x, y, i,p:integer;
    faktor:single;



du legst sie doch hier selber fest. denke mann kann die auch u und f nennen
Lacoste Threadstarter
Hält's aus hier
Beiträge: 8



BeitragVerfasst: Do 04.05.06 15:03 
Merci Leute, weiß net was ich ohne euch machen würd :D