Показать сообщение отдельно
Старый 06.10.2004, 11:52   #3  
ddadream is offline
ddadream
Участник
Аватар для ddadream
 
130 / 17 (1) ++
Регистрация: 30.11.2001
Адрес: moscow
типа может так?

X++:
static void LookPropertiesInTables1(Args _args)
{
    TreeNode    tablesRoot;
    TreeNode    newTable, newField;
    AOTTableFieldList   newTableFields;
    TreeNode    tableField;
    int         edtPos;
    str         properties;
    str         tablename;
    UtilIdElements  UtilIdElements;

;
    tablesRoot = TreeNode::findNode("\\Data Dictionary\\Tables");

    newTable = tablesRoot.AOTfirstChild();
    while (newTable)
    {

        newField = newTable.AOTfindChild("Fields");
        newField = newField.AOTfirstChild();
        while (newField)
        {
            properties = newField.AOTgetProperties();
            edtPos = strlen(properties);

            if(strscan(properties, "tableId",1,strlen(properties)))
            {
                print newTable.treeNodeName();
            }
            newField = newField.AOTnextSibling();
        }
        newTable = newTable.AOTnextSibling();
    }
}