Downto (keyword)

From The Oxygene Language Wiki

Jump to:navigation, search

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



The downto keyword precedes to target value lStart in a for loop:

for i := lEnd downto lStart do //statements

In this case, the loop will go from a high value (lEnd) to a lower value (lStart).

Note that the loop won't run when using downto on values that go from low to high. If any step value is used the value should be stated positively (defaults to 1).


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox