Тема: Field Groups
Показать сообщение отдельно
Старый 27.09.2006, 10:47   #4  
Gustav is offline
Gustav
Moderator
Аватар для Gustav
SAP
Лучший по профессии 2009
 
1,858 / 1152 (42) ++++++++
Регистрация: 24.01.2006
Адрес: Санкт-Петербург
Записей в блоге: 19
AOT \ System Documentation \ Classes \ DictTable
AOT \ System Documentation \ Classes \ DictField
AOT \ System Documentation \ Classes \ DictFieldGroup

пример их хелпа к методу DictFieldGroup.numberOfFields:
Код:
DictFieldGroup t = new DictFieldGroup(_tableId, _fieldGroupName);
DictField f;
int i;
fieldId id;
;
if (t)
{
    for (i=1; i<=t.numberOfFields(); i++)  // numbering starts at 1
    {
        id = t.field(i);
        f  = new DictField(dict.tableName2Id(_tableName), id);
        if (f) print 'Field: ' + f.name() + ' (' + int2str(id) + ')';    
        else  print 'MethodName: ' + t.methodName(id) + ' (' + int2str(id) + ')';
    }
}

Последний раз редактировалось Gustav; 27.09.2006 в 10:59.