conNull Function

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


container conNull()

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

Community Additions

ADD
Show: