ArrayListStatic: FixedSize |
Returns an ArrayList object that is wrapped in a fixed-size object.
Public Function FixedSize( ByVal List As ArrayList ) As ArrayList
Passing this object around provides access to the underlying ArrayList, however, prevents the list from changing size. The current values in the list can be modified, but the size of the list cannot change.
The following example gets a fixes size version of an ArrayList.
Set FixedSizeList = ArrayList.FixedSize(OriginalList)