Invalid Use of the <statement> Statement Outside of Cycle

Description

The code contains a statement invocation but this statement can be used only within a cycle.

Troubleshooting Tips

Delete the statement invocation or include the statement into a cycle.

Example

Sub UserProc;
Begin
    Break;
End Sub UserProc;

When the specified code is compiled, the following error is displayed: Invalid use of the break statement outside of cycle. To resolve the error, delete the statement invocation or create a cycle and transfer the break statement invocation into the body of the cycle.

See also:

Compiler Messages