Semantics : ForFromToStatement

ForFromToStatement  ::=  ( LABEL_NAME : )? for ( ( )? IDENTIFIER ( from Expr )? ( to | downto ) Expr ( step Expr )? ( ) )?
Statement

Used by:  

This for statement iterates through a series of integer values. The variable in the for clause is a local one if not already defined. The scope of the integers are specified by from , to , downto and step . If from is missing, default from 0.