Hi all, been a wee while.
I'm trying to figure out how to reference one class within another that has a reference back to the first class again. For example, ActiveSheet has a Parent property, which has an ActiveSheet property, which has a Parent property, and so on. I want to do something similar.
I want to create two classes, one that stores details of an Organisation and one that stores details of a Department. One of the properties of an Org should return the Dept class that the Org belongs to (one Org has one Dept) and one of the properties of a Dept should be an array (or collection?) of Org classes that belong to it (one Dept has many Orgs). But I can't figure out the logic without causing a stack error.
Anybody any experience they can lend me here?
Thanks all.
Bookmarks