Name
Continue Procedure
Syntax
Continue;
Description
Continue
jumps over the body of a loop,
similar to the following goto
statement:
label Continue; begin while Condition do begin DoSomething; if AnotherCondition then goto Continue; DoSomeMore; Continue: end;
If you call Continue
from within nested loop
statements, control transfer within the innermost loop only. To
continue multiple loops at one time, you must use a
goto
statement.
The Continue
procedure is built into the compiler
and is not a real procedure. If you try to use
Continue
outside of a loop statement, the compiler
issues an error message.
See Also
Break Procedure, For Keyword, Repeat Keyword, While Keyword |
Get Delphi in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.