conLen Function
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Retrieves the number of elements in a container.
int conLen(container container)
Parameters
Parameter |
Description |
---|---|
container |
The container in which to count the number of elements. |
Return Value
The number of elements in the container.
Example
static void conLenExample(Args _arg)
{
container c;
int i;
;
c = conins(["item1", "item2"], 1);
for (i = 1 ; i <= conLen(c) ; i++)
{
print conPeek(c, i);
}
pause;
}
See also
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).