System.Break

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From System.pas

	procedure Break


Unit: System

Type: procedure

Visibility: public

Description

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 Samples


Personal tools
Translations
Newest Version