Показать сообщение отдельно
Старый 03.12.2003, 18:38   #3  
Maxim Gorbunov is offline
Maxim Gorbunov
Administrator
Соотечественники
Лучший по профессии 2009
 
2,483 / 646 (26) +++++++
Регистрация: 27.11.2001
Адрес: Dubai, UAE
PHP код:
static void Job3(Args _args)
{
    
TreeNode    tablesRoot;
    
TreeNode    newTable;
    
AOTTableFieldList   newTableFields;
    
TreeNode    tableField;
    
int         edtPos;
    
str         properties;
;
    
tablesRoot TreeNode::findNode("\\Data Dictionary\\Tables");

    if (
tablesRoot) {
        
tablesRoot.AOTadd("NewBornTable");
        
newTable tablesRoot.AOTfindChild("NewBornTable");
        
        
newTableFields newTable.AOTfindChild("Fields");
        
newTableFields.addDate("BirthDate");
        
        
tableField newTableFields.AOTfindChild("BirthDate");
        
properties tableField.AOTgetProperties();

        
// Дальше надо крутиться с properties, чтобы выставить EDT TransDate
        // ..

        
tableField.AOTsetProperties(properties);
        
newTable.AOTsave();
    }

В любом случае, лучше обойтись без этого.
__________________
Not registered yet? Register here!
Have comments, questions, suggestions or anything else regarding our web site? Don't hesitate, send them to me