conLen Function

Retrieves the number of elements in a container.


int conLen(container container)

Parameter

Description

container

The container in which to count the number of elements.

The number of elements in a container.

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

Community Additions

ADD
Show: