Accessing an association class

How to access the association object of two related objects.

The fun bit is to get your hands on the newly created object (instance

of AssocationClass).



1. A.multiRoleForB.Add(B);

2. NewObject :=

A."multiRoleForB+AssociationClassName".boldobjects[A.multiRoleForB.IndexOf(B

)];



It might sound cryptic now but make sure you bookmark this example...

for when you run into this question :)

 

Share this article!

Follow us!

Find more helpful articles: