Help > Web Development > Object Reference > Code Samples > ASP > Enumerating the result list
<a name="kanchor585"></a>Enumerating the result list
Demonstrates enumerating an ISYS result list.

<% ' Calculate the range of items to enumerate, assuming ' results, from and count are passed in. ' Calculate ranges rangeFrom = from rangeTo = from + count - 1 if rangeTo > results.Length then rangeTo = results.Length ' Enumerate for i = rangeFrom to rangeTo set document = results.Item(i) ' Do any required processing on document object next %>