Difference between revisions of "For"

From Free Pascal wiki
Jump to navigationJump to search
 
Line 6: Line 6:
 
*you can use [[type|types]] instead of numbers.
 
*you can use [[type|types]] instead of numbers.
  
 +
{{Keywords}}
 
{{Stub}}
 
{{Stub}}

Revision as of 19:43, 10 May 2006

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

 for I:=1 to 100 do

(repeats the actions for a hundred times,from 1 to 100)

 for I:=100 downto 1

(repeats the actions for a hundred timed,from 100 to 1)

  • you can use types instead of numbers.


Keywords: begindoelseendforifrepeatthenuntilwhile

An editor has declared this article to be a stub, meaning that it needs more information. Can you help out and add some? If you have some useful information, you can help the Free Pascal Wiki by clicking on the edit box on the left and expanding this page.