System.Break

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure Break;

Properties

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

Description

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

The Break procedure causes the flow of control in Object Pascal 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