conNull Function [AX 2012]

Updated: November 21, 2009

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves an empty container.


container conNull()

Use this function to explicitly dispose of the contents of a container.

An empty container.

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));
    pause;
}

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: