С поиском связанных объектов в Bold мы вроде бы разобрались в одном из предыдущих постов. Сегодня нашел решение для ECO. Автор mr. Peter Morris [Droopy eyes software] (думаю представлять не надо). Далее цитирую дословно.
There will be two properties, I don't remember exactly how they are named
but it will be something like this
[ClassA] (AInstances)---[MyAssociationClass]---(BInstances) [ClassB]
To get from ClassA to ClassB you would do ClassA.BInstances.
To get from ClassA to the association classes you would do
ClassA.MyAssociationClass, which returns a list of MyAssociationClass.
To get the specific class you would do something like
Index := ClassA.BInstances.IndexOf[ClassBInstanceILinkedTo];
AssociationObject := ClassA.AssociationClass[Index];
I think that's right, but I have never needed it in code before.
Тайна Access Denied
8 месяцев назад