Break

Top  Previous  Next

Prototype

 

Break

 

Description

 

Breaks a loop immediately before reaching the exit condition.  

 

Parameters

 

None.

 

Returned value

 

None.

 

Notes

 

None.

 

Example

 

 

// initialize a counter

Counter:=1;

 

// start a loop ending when the top of the table is reached

While true do

 

Begin

 

// increment the variable "Counter"

Inc(Counter);

ApplicationLog(IntToStr(Counter));

 

// escaping condition

if Counter=100 then break;

End;