|
Set nodX = TreeView1.Nodes.Add (,, "R", "Root")
Set nodX = TreeView1.Nodes.Add ("R", tvwChild, "C1", "1st_1")
Set nodX = TreeView1.Nodes.Add ("R", tvwChild, "C2", "1st_2")
Set nodX = TreeView1.Nodes.Add ("C2", tvwChild, "C3", "1st_2")
I said on the basis of the above code, first of all, where does your node come from? If it is from the data, it is easy to match the unique key.
The method to find the key depends entirely on your logic
You can take the first character according to the path
R
R1
R2
R22
If the current key is not unique, you can R22_1 like this
Completely depends on your logic, because you can directly find a node by key, this is a good tool for you to judge node |
|