ArrayList: GetRange

GetRange

Returns an ArrayList object that is a windowed view into the original ArrayList.



 Public Function GetRange(
	  ByVal Index As Long,
	  ByVal Count As Long ) As ArrayList

Parameters

Index
[ByVal] Long. The zero-based index in the original list to start the new view.
Count
[ByVal] Long. The number of elements in the original list to show in the view.

Return Values

ArrayList -  An ArrayList that represents a subset view of the original list.

Remarks

This windowed view is the only way to then modify the original ArrayList. If the original list is modified some other way, then an exception is thrown the next time the ranged view is accessed.

See Also

Project CorLib Overview

Class ArrayList Overview