Hi Larry,
I have tried
return (type('this.Treeview.Nodes.Item(NodeName).Key') == T_CHARACTER)
It still leaves me with an extra unknown datasession.
How come you don't have that problem ? Maybe you are using datasessin #1 ..
>FWIW, you could change your NodeExists function to be:
>return type("this.Treeview.Nodes.Item(NodeName).Key") = "C"
>You don't need to trap for an error. I use this all the time in my treeview class.
>
>Regards.
>
>>endwith
>
>>Hi Agnes,
>>
>>Thanks. It is my first experience with Treeview and it's all very simple stuff
>>
>>The form closes normally, it's just the datasession that is left.
>>
>>I do not iterate through the nodes. I just populate the tv with the root nodes and expand them if needed
>>
>>I even have even removed the nodes when I got Collapse() event. To no avail.
>>
>>There surely is a way to avoid the leftover dataasessions. The challenge is to find it. But after two days of struggling, I thought I'd ask ;-)
>>ie
Gregory