>Hello Everybody
>
>What is best/fastes way to check a treeview structure for a given node key.
>I do:
>
>
>l_ok = .F.
>For i = 1 to tw.nodes.count
> if tw.nodes(i).key = searchedKey
> l_ok = .T.
> exit
> endif
>endfor
>
>
>I think, that there must be a more elegant way?
>
>Any help welcomed.
>
>Best regards
>Albert
l_Ok = .t.
TRY
oNode = tw.nodes(m.searchedKey)
CATCH
l_Ok = .f.
ENDTRY
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.