conNull Function

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

Retrieves an empty container.

container conNull()

Remarks

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

Return Value

An empty container.

Example

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

See also

conDel Function

conFind Function

conIns Function

conLen Function

conPoke Function

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