Welcome to NeoTekSystems Blog Sign in | Join | Help

Friday, September 09, 2005 - Posts

For each loop gotcha

Take the following code: Dim ar As ArrayList = New ArrayList ar.Add(1) ar.Add(2) ar.Add(3) For Each o As Object In ar Dim total As Double total += 2 MessageBox.Show(total.ToString) Next   The compiler actually moves the dim statement
posted by jspano | 0 Comments