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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset