ArrayListStatic: FixedSize

FixedSize

Returns an ArrayList object that is wrapped in a fixed-size object.



 Public Function FixedSize(
	  ByVal List As ArrayList ) As ArrayList

Parameters

List
[ByVal] ArrayList. The ArrayList to be wrapped.

Return Values

ArrayList -  The wrapped ArrayList.

Remarks

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.

Examples

The following example gets a fixes size version of an ArrayList.

 Set FixedSizeList = ArrayList.FixedSize(OriginalList)
 

See Also

Project CorLib Overview

Class ArrayListStatic Overview