Find the folder that contains the page with the given name, and return the folder.
Find the folder that contains a given page.
Folder GetFolderWithPage( LPCSTR lpcszWindowName )
Folder GetFolderWithPage( PageBase & page )
the Folder containing the page with the name lpcszWindowName.
the Folder containing the page.
EX1
// 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!"); }
Project::DatasetNames,Project::GraphPages,Project::LayoutPages,Project::LooseDatasetNames,Project::MatrixPages,Project::Notes, Project::Pages, Project::WorksheetPages
origin.h