hallo zusammen,
ich habe hier ein ganz merkwürdiges Problem mit der Forschleife:
Delphi-Quellcode:
for index:=0 to 3 do
begin
showmessage('hallo welt');
end;
showmessage(IntToStr(index));
Bei der Ausgabe nach der Schleife kommt immer 4 heraus. Warum
Was mache ich falsch?

Das habe ich noch nie gehabt. Kennt jemand das Problem?

Habe ich was verstellt?

Oder ist es einfach nur schon zu spät
Tu es oft - Bald bist du zu alt.