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
 
Back
Top