Visual Basic - Continue statement: continue while, continue for, continue do

This command is used to start the next iteration. This means that if we execute this command we'll break the loop and continue with the next iteration.

continue while

Description

continue while
Used keywords: while continue

Examples

Visual Basic .NET

Continue statement the possible of use:
i=0
while i<10
 i=i+1
end while
x =0
while i<20
 i= i+2
 if i=16 then
    continue while
 end if
 x=x+1 
end while

continue for

Description

continue for
Used keywords: continue

Examples

Visual Basic .NET

Continue statement the possible of use:
i=0
while i<10
 i=i+1
end while
x =0
while i<20
 i= i+2
 if i=16 then
    continue while
 end if
 x=x+1 
end while

continue do

Description

continue do
Used keywords: do continue

Examples

Visual Basic .NET

Continue statement the possible of use:
i=0
while i<10
 i=i+1
end while
x =0
while i<20
 i= i+2
 if i=16 then
    continue while
 end if
 x=x+1 
end while
Languages: en hu cz sk