Strange - The node gets highlighted over here when I do that
>Nope. But at lease it does not create an error
>
>
>
>
>
>>>I have a treeview with let's say 200 nodes and want to select a certain node by key if possible from withina program
>>>
>>>I tried by index:
>>>
>>>oForm.oTree1.SELECTEDITEM.index=25
>>>
>>>
>>>but not even that works
>>>
>>>
>>>Thanks
>>>
>>>Peter
>>
>>
>>Does the following work ?
>>
>>oForm.oTree1.Nodes(25).Selected = .t.
>>
>>
Gregory