| 2.2.4.38.26 Project::GetFolderWithPageGetFolderWithPage
 DescriptionFind the folder that contains the page with the given name, and return the folder.
 Find the folder that contains a given page.
 SyntaxFolder GetFolderWithPage( LPCSTR lpcszWindowName ) 
 Folder GetFolderWithPage( PageBase & page ) Parameters lpcszWindowName[input]the name of the page.
 
  page[input]the page.
 Returnthe Folder containing the page with the name lpcszWindowName.
 the Folder containing the page.
 ExamplesEX1
 // For this example to run, create a folder in the project and make
// sure that the folder contains a graph with the name "Graph1".
void    Project_GetFolderWithPage_Ex1()
{
    Folder            fld = Project.GetFolderWithPage("Graph1");
    
    if (fld.IsValid())    // if the page was found
    {
        // Display the name of the folder containing the page (window) "Graph1".
        out_str(fld.GetName());
    }
    else        // the page was not found
        out_str("The page was not found!");
}EX2
 // For this example to run, create a folder in the project and make
// sure that the folder contains a graph with the name "Graph1".
void    Project_GetFolderWithPage_Ex2()
{
    Page            pg("Graph1");
    
    Folder            fld = Project.GetFolderWithPage(pg);
    
    if (fld.IsValid())    // if the page was found
    {
        // Display the name of the folder containing the page (window) "Graph1".
        out_str(fld.GetName());
    }
    else        // the page was not found
        out_str("The page was not found!");
}RemarkSee AlsoProject::DatasetNames,Project::GraphPages,Project::LayoutPages,Project::LooseDatasetNames,Project::MatrixPages,Project::Notes,
Project::Pages,
Project::WorksheetPages
 Header to Includeorigin.h
 |