06-04-2008, 01:13 PM
After having created the RegExp object and set the pattern to search for, get all the recently visible tree nodes using
Then perform the search for this expression on the myNodes string. In the nodes of my tree were some special characters which I did not mark as literal what caused the search to fail.
In the NodeMatches are the found matches of the search. Pick one of the matches (if there are more) and you have the full path of a node which can be used to do the expand operation.
The check box to enable regular expressions I read about, has nothing to do with this case. It can be found in the Object Repository and can be used to enable regular expressions to identify the controls. After clicking the button to parameterize a controls property, the check box is located in the upcoming dialog window.
Hope this helps someone.
Regards,
Simone
Code:
myNodes = SwfWindow("MyApp").SwfTreeView("myTree").GetContent
Code:
Set NodeMatches = myRegEx.Execute(myNodes)
In the NodeMatches are the found matches of the search. Pick one of the matches (if there are more) and you have the full path of a node which can be used to do the expand operation.
The check box to enable regular expressions I read about, has nothing to do with this case. It can be found in the Object Repository and can be used to enable regular expressions to identify the controls. After clicking the button to parameterize a controls property, the check box is located in the upcoming dialog window.
Hope this helps someone.
Regards,
Simone