Visual Basic .NET <-> Object Pascal | Break statement

Visual Basic .NET

exit do

Description

exit do
Used keywords: do exit

Examples

Visual Basic .NET

Even one example in what situations we can use the operation break statement:
i=10
do
 i=i-1 
loop while i > 0
do
  i=i+1
  if i=5 then
    exit do
end if
loop while i <10
.
Object Pascal

break

Description

break ;
Used keywords: break

Examples

Object Pascal

Even one example in what situations we can use the operation break statement:
i:=10;
repeat dec(i) until not i > 0;
repeat
  inc(i);
  if i=5 then
    break;
until not i <10;
Visual Basic .NET

exit for

Description

exit for
Used keywords: exit
Note: Usable in the following locations:

Examples

Visual Basic .NET

Even one example in what situations we can use the operation break statement:
i=10
do
 i=i-1 
loop while i > 0
do
  i=i+1
  if i=5 then
    exit do
end if
loop while i <10
.
Object Pascal

break

Description

break ;
Used keywords: break

Examples

Object Pascal

Even one example in what situations we can use the operation break statement:
i:=10;
repeat dec(i) until not i > 0;
repeat
  inc(i);
  if i=5 then
    break;
until not i <10;
Visual Basic .NET

exit while

Description

exit while
Used keywords: while exit

Examples

Visual Basic .NET

Even one example in what situations we can use the operation break statement:
i=10
do
 i=i-1 
loop while i > 0
do
  i=i+1
  if i=5 then
    exit do
end if
loop while i <10
.
Object Pascal

break

Description

break ;
Used keywords: break

Examples

Object Pascal

Even one example in what situations we can use the operation break statement:
i:=10;
repeat dec(i) until not i > 0;
repeat
  inc(i);
  if i=5 then
    break;
until not i <10;
Languages: en hu cz sk