/ Published in: Visual Basic
This method returns a TreeView node based on its key.
- Private Function getNodeByKey(key As String, treeView_ As Object) As Node
- Dim i As Long
- For i = 1 To treeView_.Nodes.count
- If (treeView_.Nodes(i).key = key) Then
- Set getNodeByKey = treeView_.Nodes(i)
- Exit Function
- End If
- Next i
- Set getNodeByKey = Nothing
- End Function
You need to login to post a comment.