Perhaps I'm oversimplifying here but once you have the tree structure wouldnt a simple recursive counting method do the trick? :
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
posted
0
You can avoid recursion if that matters to you ... to get the level for "subject" ...
I used to see this kind of thing in GUIs where an event handler wants to work back up to the parent window or some other container.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi