✏️ Explanatory Question

In the service class, what is the purpose of ListEnumerator?

👁 2 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

ListEnumerator is used to loop through all elements in a List object.
Example:


siteEnum = inventSiteId.getEnumerator();
while (siteEnum.moveNext())
{
    info(strFmt("Selected Site ID: %1", siteEnum.current()));
}

This prints each selected Site ID in the Infolog.