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

 

Ax2012 container list的用法

上一篇:math对象的常用方法有哪些


下一篇:QT -- float转ushort,用QImage 显示32float格式图像(CV_32FC1)