ForStatement Class

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


[Serializable]
ForStatement = public class(Statement)

The ForStatement class represents a for <i> := <a> to/down <z> do <statement> statement. The name and type are the implicitly introduced indexer variable for this loop. The step variable is optional, however it should always be a positive number, if it's used. The aEnd and aStep variables will only be evaluated once for the whole for loop.


Namespace: Cirrus Statements


Members

Method
Description
constructor(aVariableName: String; aVariableType: IType; aStart, aEnd, aStep: Value; aBody: Statement; aDownto, aParallel: Boolean)Initialize an empty loop
constructorInitialize an empty loop


Properties

Property
Description
Body: StatementStatement body
Downto: BooleanLoop backward; if this is set, Start can be more than
End: ValueEnd of the sequence; this is inclusive
Name: StringName of the local introduced
Parallel: BooleanRun the loop in parallel
Start: ValueStart value
Step: ValueStep value, if nil it's 1
Type: ITypeOptional type, if not set it's initialized to the type of the start value


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox