2.2.4.13.13 Folder::GetParent

Description

Get the parent folder of a folder object

Syntax

Folder GetParent( )

Parameters

Return

Returns the parent folder of a folder object

Examples

EX1

// Get the parent folder of the active folder
void    Folder_GetParent_Ex1()
{
    Folder fld = Project.ActiveFolder();
    Folder parentFld = fld.GetParent();
    if( parentFld.IsValid() )
        printf("The parent of Current folder is: %s", parentFld.GetName());
}

Remark

Get the folder's parent folder.

Note that using this method on the root folder returns itself.

See Also

Header to Include

origin.h