GetParent
Get the parent folder of a folder object
Folder GetParent( )
Returns the parent folder of a folder object
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()); }
Get the folder's parent folder.
Note that using this method on the root folder returns itself.
origin.h