Takes the currently selected node from the treeview object.
object @TreeViewGetSelectedNode(string classname);
Parameters
string classname : The class name of the object
Return Value
If there is currently a node selected, it returns that node, otherwise it returns null.
Example
node = @TreeViewGetSelectedNode("TreeView1");
if(node == null) {
@sprintf(msg, "Node not selected");
}
else {
text =
@TreeNodeGetText(node);
@sprintf(msg, "Node Text=%s",
text);
}
@ListBoxInsertString("ListBox1", 0, msg);
Description : If there is a node currently selected in the TreeView1 object, the text is displayed in the list box.
Version Information
Supported Version: 10.3.3
Related Helps