Visual C++ .NET <-> Visual Basic .NET | Break statement
Visual C++ .NET Used keywords: break
break
Description
break ;
Note: Usable in the following locations:
loop with condition at the end loop with condition on the beginning
loop with condition at the end loop with condition on the beginning
Examples
Visual C++ .NET
Even one example in what situations we can use the operation break statement:i=10;
do --i; while ( i > 0);
do {
i++;
if (i==5)
break;
} while ( i <10);
.
Visual Basic .NET
Visual C++ .NET Used keywords: break
break
Description
break ;
Note: Usable in the following locations:
loop with condition at the end loop with condition on the beginning
loop with condition at the end loop with condition on the beginning
Examples
Visual C++ .NET
Even one example in what situations we can use the operation break statement:i=10;
do --i; while ( i > 0);
do {
i++;
if (i==5)
break;
} while ( i <10);
.
Visual Basic .NET Used keywords: exit
exit for
Description
exit for
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
Visual C++ .NET Used keywords: break
break
Description
break ;
Note: Usable in the following locations:
loop with condition at the end loop with condition on the beginning
loop with condition at the end loop with condition on the beginning
Examples
Visual C++ .NET
Even one example in what situations we can use the operation break statement:i=10;
do --i; while ( i > 0);
do {
i++;
if (i==5)
break;
} while ( i <10);
.
Break statement in another programming language:
Differences to: