Thanks alot. The reason for this is I have a list on the right (similar to outlook) which shows all children of current node and leaves have no children so that list is empty.
and that looks funny
Peter
>My mistake. I couldn't beleive that some object doesn't have Enabled.
>I'll try to find a way.
>
>>
oNode.Enabled = .f.
>>causes an error.
>>I wanted to do something like ths but did not find an enabled property in the nodes object <s>
>>
>>
>>
>>
>>>First thing that comes to my mind:
>>>
>>>FOR EACH oNode IN thisform.oleTree.Nodes
>>> IF TYPE("oNode.Child") # "O" .OR.;
>>> ISNULL(oNode.Child)
>>> oNode.Enabled = .f.
>>> ENDIF
>>>ENDFOR
>>>
>>>(not tested)
Peter Cortiel