|
|
|
Click here to copy the following block |
Function GetNodeRelationship(ByVal Node1 As Node, _ ByVal Node2 As Node) As Integer If Node1 Is Node2 Then Exit Function ElseIf Len(Node1.FullPath) > Len(Node2.FullPath) Then If InStr(Node1.FullPath, Node2.FullPath) = 1 Then Do Until (Node1.Parent Is Nothing) Set Node1 = Node1.Parent GetNodeRelationship = GetNodeRelationship + 1 If Node1 Is Node2 Then Exit Function Loop End If Else If InStr(Node2.FullPath, Node1.FullPath) = 1 Then Do Until (Node2.Parent Is Nothing) Set Node2 = Node2.Parent GetNodeRelationship = GetNodeRelationship - 1 If Node1 Is Node2 Then Exit Function Loop End If End If GetNodeRelationship = 0 End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
 |

|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|