>Hi
>
>How can I select a node if I know the key for this node
>Lkey ="C001"
>can I do somting like Thisform.Tree.Nodes.Key(lkey).selected = .t.
>
>
>Benoit
Yes you can (thats exactly it). If you keep the form modeless (you probably know this already), you can test and verify the syntax while your form is running. To me, thats one of the most amazing things about VFP: That we can instruct the controls, while the form is active, from the command window)
Imagination is more important than knowledge