For

This is an old revision of For, edited by Djzepi at . The current revision is 31111.

keyword used with "to"\"downto" and "do" for a loop: <delphi>

 for I:=1 to 100 do

</delphi> (repeats the actions for a hundred times,from 1 to 100)

<delphi>

 for I:=100 downto 1

</delphi> (repeats the actions for a hundred timed,from 100 to 1)

Keywords: begin — do — else — end — for — if — repeat — then — until — while