Ok, here it is. Which is more correct?
AList = New ArrayList
for i = 0 to 10
A = New myObject
AList.Add(A)
A = nothing
next
--- OR ---
AList = New ArrayList
for i = 0 to 10
A = New myObject
AList.Add(A)
next
AList = New ArrayList
for i = 0 to 10
A = New myObject
AList.Add(A)
A = nothing
next
--- OR ---
AList = New ArrayList
for i = 0 to 10
A = New myObject
AList.Add(A)
next
Comment