do
SYNTAX: for iteration_variable := initial_value to final_value do statement
or for iteration_variable := initial_value downto final_value do statement
or
while boolean_expression do statement
or
with list_element[,...] do statement
DESCRIPTION:
"do" is a reserved word in all Pascal standards. It is used for constructing loops during the execution with "for" and "while" statements. The statement following the "do" - the body of the "do" statement - will be executed in cycles according to the controlling iteration variable or boolean expression respectively. Often several simple statements grouped together in a compound-statement as the body of the cycle ("begin statement1; statement2;.... end;").
The later form is for easy access of fields of record or schema type variables. The references in the body of the "do" statement will access the corresponding fields directly in the listed record or schema identifiers.
***** it is rather cryptic. I hardly ever use this feature. correct this section *****
STANDARDS: All.
EXAMPLE:
See the section of the reference under "for", "while" and "with" for the examples.
SEE ALSO: for, while, with
____________________________________
I am waiting for comments.
miklos