Показать сообщение отдельно
Старый 05.07.2004, 17:39   #1  
George Nordic is offline
George Nordic
Модератор
Аватар для George Nordic
Злыдни
 
4,479 / 1250 (50) ++++++++
Регистрация: 17.12.2003
Адрес: Moscow
Записей в блоге: 9
Angry Да что ж такое! Не работает
Господа! Проверьте, плиз. По идее, данный код должен перечислять все Field в BomTable.
Такое ощущение, что AOTnextSibling() просто не работает!! Код простой, как доска - может кто проверить у себя? Может, местные глюки

PHP код:
static void GetBomTableFieldsJob(Args _args)
{
    
TreeNode    treeNode;
    
TreeNode    fieldNode;
    
xInfo       xinfo = new xInfo();
    ;

    
treeNode    =   xinfo.rootNode();
    
treeNode    =   treeNode.AOTfindChild("Data Dictionary");
    
treeNode    =   treeNode.AOTfindChild("Tables");
    
treeNode    =   treeNode.AOTfindChild("BomTable");
    
treeNode    =   treeNode.AOTfindChild("Fields");
    
fieldNode   =   treeNode.AOTfirstChild();

    while (
fieldNode)
    {
        
info(strfmt("Table: %1,Field: %2",treeNode.treeNodeName(), fieldNode.treeNodeName()));
        
fieldNode.AOTnextSibling();
    }