*& some examples with node.Text is "Patel, Nick" and pcSearch is "Patel". *& *& 1. IF UPPER(ALLTRIM(.Text)) = UPPER(ALLTRIM(pcSearch)) *& returns .T. *& 2. IF UPPER(ALLTRIM(.Text)) == UPPER(ALLTRIM(pcSearch)) *& returns .F. *& 3. IF UPPER(ALLTRIM(pcSearch)) $ UPPER(ALLTRIM(.Text)) *& returns .T.HTH.
>>*& Form.SearchTree() method. >>LPARAMETERS pcSearch >>*& >>LOCAL loNode >>*& >>FOR EACH loNode IN Thisform.oleTreeView.Nodes >> WITH loNode >> IF .Text = pcSearch >> .Selected = .T. >> .Expanded = .T. >> .EnsureVisible() >> EXIT >> ENDIF >> ENDWITH >>NEXT loNode >>>>