From RAD Studio API Documentation
Jump to: navigation, search


procedure Break;


Type Visibility Source Unit Parent
procedure public System.pas System System


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

The Break procedure causes the flow of control in Delphi code 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; otherwise, the compiler reports an error.

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

See Also

Code Examples