RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Break Function

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

Pascal
procedure Break;
C++
Break();

System

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, or 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.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!