Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Jun 21, 2008 4:37 am Post subject: HOWTO: Determine whether two TreeNode instances represent the same node. |
|
|
Many different properties, methods and events return TreeNode instances. To determine whether two instances represent the same underlying node in FolderView, use the ID property as follows :
[VB6]
If node1.ID = node2.ID Then
' The same node
..
..
End If
[C++]
if (node1.GetId() == node2.GetId())
{
//The same node
..
..
} |
|