@F.Art
Wieso immer noch zwei mal
Quelltext
1: 2: 3: 4: 5: 6:
| for x:=1 to strtoint(Anzahl.text) do begin ... Anzahl.text := inttostr(strtoint(Anzahl.Text) - 1); if Anzahl.Text=('0') then Break; end; |
Einmal als for x:=1 to strtoint(Anzahl.text) do Schleife, dann aber auch noch als Anzahl.text := inttostr(strtoint(Anzahl.Text) - 1).
Mit der x Schleife wird doch schon bis Anzahl.text gezählt. Wieso dekrementierst du noch mal Anzahl.text am ende des Blocks?
ist das gleiche wie :
Quelltext
1: 2: 3: 4: 5:
| for x:=1 to strtoint(Anzahl.text) do for x2:=(strtoint(Anzahl.text) - 1) downto 0 do begin ... end; |
Ist unlogisch. Das hab ich dir aber schon am anfang geschrieben.
Irgendwie hab ich das gefühl, daß du meine Antworten ignorierts. Ist das so? Wenn ja, dann schreib mir ein KM warum und ob ich es lassen soll.