VB.NET For/Next loops

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the difference between these?

For i = 0 To 9
...
Next

For i = 0 To 9
...
Next i

Does putting "Next i" instead of just "Next" at the end make a difference?
 
microsoft.public.dotnet.languages.vb is a better group for VB.NET
syntax questions.

Does putting "Next i" instead of just "Next" at the end make a difference?

Not to the compiled code. Some may argue that it affects the
readability of your source code.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top