KingLarryXVII
New Member
- Joined
- Jan 11, 2013
- Messages
- 11
So this is a bit of a corner case, but I was setting up an Object, cPerson, and wanted to reference their parent's objects, which are also cPerson type, so I could call (rough example):
Set person = New cPerson
Set mother = New cPerson
Set father = New cPerson
set person.Mother = mother
set person.Father = father
The problem is that when I set the properties "Mother" and "Father" within cPerson, I can't have them as type cPerson (stack overflow because each mother needs parents and so on to infinity)
Question: Are there any ways I can create a reference to the 'mother' and 'father' objects within 'person' but not of the type cPerson?
Let me know if the question isn't clear. Thank you in advance!
Set person = New cPerson
Set mother = New cPerson
Set father = New cPerson
set person.Mother = mother
set person.Father = father
The problem is that when I set the properties "Mother" and "Father" within cPerson, I can't have them as type cPerson (stack overflow because each mother needs parents and so on to infinity)
Question: Are there any ways I can create a reference to the 'mother' and 'father' objects within 'person' but not of the type cPerson?
Let me know if the question isn't clear. Thank you in advance!