treecombobox AddPath method
Previous  Top  Next
Applies to
tcTreeComboBox component.  

Declaration
function AddPath(Node: TTreeNode; const Path: Stringconst PathSeparator: String = '\'): TTreeNode;  

Description
The AddPath method adds or inserts to the TreeView the string or nested group of strings (pathes) specified by Path parameter and separated by string specifed in PathSeparator parameter.  
 
The declaration can be  
AddPath(nil'D:\Test\Test');  
 
So, if you call method above, the component will add following structure to the root item of TreeComboBox:  
D:  
Test  
Test  
 
Return value is the last added child node.  

See also
ShowTreePathInEdit, TreePathSeparator and TreeView properties.  
File not found.