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();
}
}
В любом случае, лучше обойтись без этого.