Loop (keyword)

From RemObjects Software

Jump to: navigation, search

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



In addition to while, for and repeat/until loops, Oxygene introduces an additional simple "loop" construct that loops endlessly, until broken out of. Essentially, this will replace hacked "repeat ... until false" statements that are often used in these kinds of scenarios in classic Pascal.

Example

loop begin
  ...
  Console.Writeln(i);
  Inc(i);
  if i > 1000 then break;
  ...
end;

The usual break and continue statements apply inside "loop", to exit the entire loop or the current iteration, respectively.


See Also


Product: RemObjects Oxygene (formerly known as Chrome)
Current version: 3.0 Previous Versions: 'Joyride' (2.0), 'Floorshow' (1.5), 'Adrenochrome' (1.0)

GlossaryKeywordsLanguage FeaturesPlatform FeaturesSamplesArticlesHow ToIssues

Personal tools