Ax2012 container list的用法

container 

static void Job1(Args _args)
{
    container           con = ["aaa", "bbb", "ccc"];
    int                 i;
    ;

    con += "ddd";
    
    for(i = 1; i <= conLen(con); i++)
    {
        info(strFmt("%1", conPeek(con, i)));
    }

}

 

List

static void Job2(Args _args)
{
    List                list = new List(Types::String);
    ListIterator        iterator;
    String255           stringtest = "aaa,bbb,ccc";
    ;

    list = strSplit(stringtest, ",");
    list.addEnd("ddd");
    iterator = new ListIterator(list);

    while(iterator.more())
    {
        info(strFmt("%1", iterator.value()));
        iterator.next();
    }
}

 

posted @ 2021-06-28 11:43  一口一个小馒头  阅读(156)  评论(0编辑  收藏  举报