Compound Statements
A Begin .. End block is used to mark the beginning and end of a compound statement. A compound statement is a sequence of statements that are to be executed in the same order that they are written. The syntax of a compound statement is:
Begin
{statement 1}
{statement 2}
…
{statement n}
End
Where:
{statement}can be any valid DataFlex statement, including another block.
A compound statement can be considered as one single statement comprised of many parts. This is useful when the syntax of some other statement conditionally executes one secondary statement. If you need to execute more than one statement, you can use Begin .. End to create a single compound statement.
An example of a compound statement is:
Begin
Move (0) To iStart
Move (100) To iEnd
Move (2) To iStep
End