Folder::AddFolder

 

Description

Create a Subfolder and Add it to given path.

Syntax

Folder AddFolder( LPCSTR lpcszFolderPath )

Parameters

lpcszFolderPath
[input] The path that you want to add SubFolder.

Return

Return a added folder

Examples

EX1

void    Addfolder_Ex1()
{
    Folder fld = Project.ActiveFolder();
    if(fld.IsValid())
    {
        string strPath = "./Sub1";
        Folder fldsub1 = fld.AddFolder(strPath);
        printf("The path of Current folder is: %s", fldsub1.GetPath());
        return;
    }
    printf("there is no active folder in current project");
}

Remark

See Also

OriginC:Folder::GetFolder

header to Included

origin.h