ForInStatement Class
From The Oxygene Language Wiki
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
| | |
|---|---|
| constructor(aVariableName: String; aVariableType: IType; aMatching: Boolean; aInData: Value; aBody: Statement; aIndexVariable: String; aIndexType: IType; aParallel: Boolean) | Initialize a new for in loop |
| constructor | Initialize an empty for in loop |
Properties
| | |
|---|---|
| Body: Statement | Statement body |
| IndexName: String | Name of the index variable name, the counter for the index in this loop, if needed; NIL means it's not generated |
| IndexType: IType | IndexType is the type of the index variable, Usually System.Int32 |
| Kind: RemObjects.Oxygene.Cirrus.Statements.StatementKind | Statement kind |
| Matching: Boolean | Only return items where the type matches the list |
| Name: String | Name of the local introduced |
| Parallel: Boolean | Run in parallel |
| Source: Value | Source collection for the for loop |
| Type: IType | Type of the local introduced in for/in |
See Also
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
- Statement Class
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To