Autor Beitrag
xan553
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67



BeitragVerfasst: Do 14.06.07 20:19 
hi, warum bekomme ich bei folgendem quellcode bei label 6 immer 0 raus?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
if RB2.Checked then begin
raten:=strtofloat(edit3.Text);
zinssatz:=strtofloat(edit4.text);
rate:=betrag/raten;
erg2:=(rate*zinssatz/100)+rate;
label6.Caption :=floattostr(erg2)+'  Euro';
Shorty
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 107

Win XP, Ubuntu 8.04
Delphi 7 Prof., Delphi 2005 Pers.
BeitragVerfasst: Do 14.06.07 20:23 
Ist die Variable Betrag vielleicht noch 0? Der wird zumindest in diesem kleinen Ausschnitt kein Betrag zugewiesen, und wenn die 0 ist, ergibt die ganze Rechnung 0.
bflegel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 193
Erhaltene Danke: 1

Win XP, Win 7, BS2000
D5
BeitragVerfasst: Do 14.06.07 20:24 
Hallo,

hast Du die Variable betrag auch gesetzt?

Bye bflegel

_________________
I know all the jokes about my name