Retrieves the number of elements in a container.
Function
- int conLen(container container)
Parameters
- Parameter: container
- Description: The container in which to count the number of elements.
Return Value
- The number of elements in the container.
Example
- X++
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;
}
My above blog is based on Microsoft's Official information.
I hope this blog about 'Microsoft Dynamics AX 2012 R2 - conLen Function' was informative. Please feel free to leave your comments.
Thank you for the code.. I found your effort is welcome.. Keep posting.
ReplyDeleteThanks Sakthi.
ReplyDelete