Glenn
Not sure what you are needing to do here.
If you are using the the identifier to find the record then you are correct in your current approach and the returned string is as you describe.
If having searched for the Treeview item, you wish to select it, then you have to add the code as line 2
If you require the Node<TAB>Leaf returned the add line 3
1. FindRes is string = TreeFind(TreeView1,163)
2. TreeSelectPlus(TreeView1,FindRes)
3. TreeSelect(TreeView1)
AFAIK you cannot return the Line 3 values unless you have selected the item first.
Either as described or by placing TreeSelect(Myself) in theRow Selection of the Treeview code editor.
Treeviews are, IMHO, not the easiest when it come to manipulating the content.
I am now using the TreeViewTable control
The code to fill them is different but once they are filled then all of the options available for a standard table (Seek,Select,Select+,Select,MultiSelect etc etc) are available.
Of course if you wish you can edit the style to get pretty much the look of a standard treeview.
Well worth a look
Regards
DerekT