object A test object of type WinTreeView.
Item Required. A Variant value.
The full path of the node to select in the tree-view control. The path is composed of the names of the nodes (with quotes) or numeric index (without quotes) separated by a semicolon. When specifying the index, the first node in a tree-view control is numbered 0.
Note 1: If the node is identified by its full path, the default path delimiter is ';'. For example, "Root;Child1;Child2". If the default path delimiter character is used in a node name, you can change the delimiter character for your test or component using the "TreePathDelimeter" setting value. For example, Setting.Item("TreePathDelimiter") = "#"
Note 2: If the node is identified by its numeric index, QuickTest counts only the expanded nodes. Child nodes of a collapsed parent node are not counted. The first root node in a tree-view control is numbered 0.作者: walker1020 时间: 2007-7-2 13:03 标题: Right-click a Node in a Tree View Control Sub Select_Example()
'The following example uses the Select method to select the node with
'the right mouse button, with an offset of 20 pixels: