ForStatement Class
From The Oxygene Language Wiki
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
| | |
|---|---|
| constructor(aVariableName: String; aVariableType: IType; aStart, aEnd, aStep: Value; aBody: Statement; aDownto, aParallel: Boolean) | Initialize an empty loop |
| constructor | Initialize an empty loop |
Properties
| | |
|---|---|
| Body: Statement | Statement body |
| Downto: Boolean | Loop backward; if this is set, Start can be more than |
| End: Value | End of the sequence; this is inclusive |
| Name: String | Name of the local introduced |
| Parallel: Boolean | Run the loop in parallel |
| Start: Value | Start value |
| Step: Value | Step value, if nil it's 1 |
| Type: IType | Optional type, if not set it's initialized to the type of the start value |
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