Parent Property
Applies To
TreeView
Description
Gets and sets the parents node for the items (node) that has been added to the tree view.
Usage
GGet Form.Control.Parent(name), var
GSet Form.Control.Parent(name), value
- Form
- Name of a form or string variable containing a form name.
- Control
- Name of a control or string variable containing a control name. The control must exist in the specified form.
- name
- Specifies the string that indicates the child node in which the parent node will be set.
- var
- String variable that will contain the value of the property.
- value
- String expression for the new value of the property
Values
Specify the string that indicates the parent node.
See Also
Tree View Control , AddNode Property , RemoveNode Property , Text Property
Example
GSet frmMain.lstModels.AddNode, "Model1"
GSet frmMain.lstModels.AddNode, "Model1-1"
GSet frmMain.lstModels.Parent("Model1-1"), "Model1"