ListIterator.new Method [AX 2012]

Creates a new iterator for a particular list.

public void new(List list)

Run On

Called

Parameters

list
Type: List Class
The list for which to create an iterator.

The iterator is positioned at the first value in the list, if the list is not empty. Iterators and the lists that they iterate over must be on the same client/server side.

The following example creates an iterator for a list of integers.

List il = new List(types::Integer); 
ListIterator it; 
  
it = new ListIterator (il);

Community Additions

ADD
Show: