2.2.4.13.4 Folder::AddSubfolder

Description

Create a subfolder by name

Syntax

Folder AddSubfolder( LPCSTR lpcszSubFolderName )

Parameters

lpcszSubFolderName
[input] The name of the subfolder to create

Return

Returns a folder object attached to the created folder

Examples

EX1

// Create subfolders of any folder object
void    Folder_AddSubfolder_Ex1()
{
    Folder fld = Project.RootFolder;
    Folder fldsub1 = fld.AddSubfolder("Sub1");
    Folder fldsub2 = fldsub1.AddSubfolder("Sub2");
}

Remark

Create a subfolder with the name specified in lpcszSubFolderName.

See Also

Header to Include

origin.h