The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



GetSubDirs


Unit: SDL_foldertree
Class: TFolderTree
Declaration: [1] function GetSubDirs (node: TTreeNode; DirList: TStringList): boolean; overload;
[2] function GetSubDirs (path: string; DirList: TStringList): boolean; overload;

The function GetSubDirs returns the subdirectories of a particular folder. The folder may be specified either by its tree node (parameter node in version [1]), or by the path (parameter path in version [2]). The function returns TRUE if both the specified path is valid and the directory has at least one subdirectory. The list of available subdirectories is returned in the parameter DirList.

Hint: Please note that the TStringList object DirList has to created prior to the call of GetSubDirs.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): foldertree



Last Update: 2023-Dec-08