AddPath
Return to Introduction  Previous page  Next page
Applies to
acTreeView and acTreeComboBox components.  

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.