ListEnumerator.current Method [AX 2012]
Retrieves the value that is pointed to by the enumerator.
The following example iterates through the list and 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: