Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
procedure Break;
Immediately exits the iteration in which it appears.
The iteration assumes for, while, or repeat statements.
If a break occurs inside the try clause, the finally clause is entered.
var
S: string;
i:integer;
begin
for i:=0 to 100 do
begin
ReadLn(S);
if S = '' then Break;
WriteLn('This is not an empty string:' + S);
end;
end;
|
Continue,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|