Getting Class extend list

There the code for display all classes who extend the class that you specify at the beginning:

static void MyGetClassList(Args _args)
{
    DictClass               dictClass;
    List                    listClass;
    ListEnumerator          listEnumerator;

    ClassId                 baseClass = classNum(TradeTotals);
    ;

    listClass = new DictClass(baseClass).extendedBy();

    listEnumerator = listClass.getEnumerator();

    while (listEnumerator.moveNext())
    {
        dictClass = new DictClass(listEnumerator.current());

        if (dictClass && !dictClass.isAbstract())
        {
            info(dictClass.name());
        }
    }
}
Advertisements