ForInStatement 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]
ForInStatement = public class(Statement)

This class represents a for each ... in ... do loop. The variable name/type is the implicitly created variable for this for each loop. The index variable and type is an optional extra parameter, that will count from 0 on and can be used to find out the current index into the sequence, if used.

Namespace: Cirrus Statements


Members

Method
Description
constructor(aVariableName: String; aVariableType: IType; aMatching: Boolean; aInData: Value; aBody: Statement; aIndexVariable: String; aIndexType: IType; aParallel: Boolean)Initialize a new for in loop
constructorInitialize an empty for in loop


Properties

Property
Description
Body: StatementStatement body
IndexName: StringName of the index variable name, the counter for the index in this loop, if needed; NIL means it's not generated
IndexType: ITypeIndexType is the type of the index variable, Usually System.Int32
Kind: RemObjects.Oxygene.Cirrus.Statements.StatementKindStatement kind
Matching: BooleanOnly return items where the type matches the list
Name: StringName of the local introduced
Parallel: BooleanRun in parallel
Source: ValueSource collection for the for loop
Type: ITypeType of the local introduced in for/in


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox