SetIterator.new Method [AX 2012]

Creates a new iterator for a set.

public void new(Set set)

Run On

Called

Parameters

set
Type: Set Class
The set to iterate over.

The iterator is positioned at the first value in the set, if the set is not empty.

The following example creates a set of integers and then creates an iterator for that set

Set s1 = new Set (Types::Integer); 
SetIterator it; 
  
it = new SetIterator(s1);

Community Additions

ADD
Show: