ListEnumerator.moveNext Method [AX 2012]
Determines whether the enumerator denotes a valid list element.
The following example uses the moveNext method to check whether there is another element in the list and then sets the dimensionTopic variable to the value of the current list element.
public DimensionTopic firstDimensionTopic()
{
DimensionTopic dimensionTopic;
ListEnumerator enumerator;
enumerator = this.getTopicsEnumerator();
if (enumerator.moveNext())
{
dimensionTopic = enumerator.current();
}
return dimensionTopic;
}
Community Additions
ADD
Show: