R
Robin Tucker
In the MSN article
http://msdn.microsoft.com/library/d...s/cpgenref/html/cpconarrayusageguidelines.asp,
they state that "each call to the myObj property creates a copy of the
array. As a result, 2n+1 copies of the array will be created in the
following loop." I cannot understand why this is - surely obj.myObj(i) is
just fetching a single value (at i) in the array obj.myObj.
Anyone see what I'm not understanding here?
Dim i As Integer
For i = 0 To obj.myObj.Count - 1
DoSomething(obj.myObj(i))
Next i
http://msdn.microsoft.com/library/d...s/cpgenref/html/cpconarrayusageguidelines.asp,
they state that "each call to the myObj property creates a copy of the
array. As a result, 2n+1 copies of the array will be created in the
following loop." I cannot understand why this is - surely obj.myObj(i) is
just fetching a single value (at i) in the array obj.myObj.
Anyone see what I'm not understanding here?
Dim i As Integer
For i = 0 To obj.myObj.Count - 1
DoSomething(obj.myObj(i))
Next i