Break procedure

Navigation:  Les scripts > Les autres scripts > Statements >

Break procedure

Previous pageReturn to chapter overviewNext page

Causes the flow of control to exit a for, while, or repeat statement.

 

procedure Break;

 

The Break procedure causes the flow of control to exit a for, while, or repeat statement and continue at the next statement following the loop statement.

 

A call to Break must be contained in a for, while, or repeat statement, or the compiler reports an error.

 

Note:        Break will not violate the flow of control dictated by a try..finally construct. If a break occurs inside a try..finally, the finally clause will be entered.