Monday, 4 March 2013

Microsoft Dynamics AX 2012 R2 - conNull Function

Retrieves an empty container.


  • container conNull()
Use this function to explicitly dispose of the contents of a container.

Return Value

  • An empty container.


  • X++
static void conNullExample(Args _arg)
    container c = ["item1", "item2", "item3"];

    print "Size of container is " + int2str(conLen(c));
    // Set the container to null.
    c = conNull(); 
    print "Size of container after conNull() is " + int2Str(conLen(c));

My above blog is based on Microsoft's Official information.

I hope this blog about 'Microsoft Dynamics AX 2012 R2 - conNull Function' was informative. Please feel free to leave your comments.

No comments:

Post a Comment