Return the parent Ocx name of a collection item (Tab, Node, and ListItem).
Node.TreeViewName
ListItem.ListViewName
returnvalue: string
TreeViewName returns a string containing the Ocx name of the TreeView parent the Node belongs to.
ListViewName returns a string containing the Ocx name of the ListView parent the ListItem belongs to.
Local n As Int32
Ocx TreeView tv = "", 10, 10, 200, 300
For n = 1 To 5 : tv.Add , , , "Item" & n : Next n
Ocx ListView lv = "", 220, 10, 200, 300
For n = 1 To 5 : lv.Add , , "Item" & n : Next n
Color 0, RGB(255, 255, 0)
Text 10, 320, "TreeViewName: " & tv(1).TreeViewName
Text 220, 320, "ListViewName: " & lv(1).ListViewName
Do : Sleep : Until Me Is Nothing
Node, ListItem, TreeView, ListView
{Created by Sjouke Hamstra; Last updated: 24/10/2014 by James Gaite}