Difference between revisions of "Do"

From Lazarus wiki
Jump to navigationJump to search
(add “to begin do …;” and “to end do …;”)
Line 1: Line 1:
 
{{do}}
 
{{do}}
  
<syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight> is a [[Reserved word|reserved word]] that is only used in conjunction with other [[Keyword|keywords]].
+
<syntaxhighlight lang="pascal" inline>do</syntaxhighlight> is a [[Reserved word|reserved word]] that is only used in conjunction with other [[Keyword|keywords]].
  
 
== occurences ==
 
== occurences ==
<syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight> usually separates a language construct from an associated (compound) statement.
+
<syntaxhighlight lang="pascal" inline>do</syntaxhighlight> usually separates a language construct from an associated (compound) statement.
  
 
* loops
 
* loops
** [[For|<syntaxhighlight lang="pascal" enclose="none">for</syntaxhighlight>]] … <syntaxhighlight lang="pascal" enclose="none">to</syntaxhighlight> … <syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight>
+
** [[For|<syntaxhighlight lang="pascal" inline>for</syntaxhighlight>]] <syntaxhighlight lang="pascal" inline>to</syntaxhighlight> <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
** [[While|<syntaxhighlight lang="pascal" enclose="none">while</syntaxhighlight>]] … <syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight>
+
** [[While|<syntaxhighlight lang="pascal" inline>while</syntaxhighlight>]] <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
* [[Identifier|identifier]] scope lookup routing: [[With|<syntaxhighlight lang="pascal" enclose="none">with</syntaxhighlight>]] … <syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight>
+
* [[Identifier|identifier]] scope lookup routing: [[With|<syntaxhighlight lang="pascal" inline>with</syntaxhighlight>]] <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
* [[Exceptions|exception]] handling: [[Try|<syntaxhighlight lang="pascal" enclose="none">try</syntaxhighlight>]] … [[Except|<syntaxhighlight lang="pascal" enclose="none">except</syntaxhighlight>]] <syntaxhighlight lang="pascal" enclose="none">on</syntaxhighlight> … <syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight>
+
* [[Exceptions|exception]] handling: [[Try|<syntaxhighlight lang="pascal" inline>try</syntaxhighlight>]] [[Except|<syntaxhighlight lang="pascal" inline>except</syntaxhighlight>]] <syntaxhighlight lang="pascal" inline>on</syntaxhighlight> … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
 +
* in [[Extended Pascal|extended Pascal]] the start of initialization and finalization parts of a module: <syntaxhighlight lang="pascal" inline>to begin do …;</syntaxhighlight> and <syntaxhighlight lang="pascal" inline>to end do …;</syntaxhighlight>
  
 
{{Keywords}}
 
{{Keywords}}

Revision as of 22:27, 19 October 2019

Deutsch (de) English (en) español (es) suomi (fi) français (fr) русский (ru)

do is a reserved word that is only used in conjunction with other keywords.

occurences

do usually separates a language construct from an associated (compound) statement.


Keywords: begindoelseendforifrepeatthenuntilwhile