2.2.4.34.4 PageBase::GetFolder

Description

Get the Project Explorer folder where the page is located.

Syntax

Folder GetFolder( )

Parameters

Return

Returns a valid Folder object on success and a NULL object on failure.

Examples

EX1

//Get the folder where the current page is located
void PageBase_GetFolder_ex1()
{
    PageBase pb = Project.Pages();
    if( pb )
    {
        Folder fd = pb.GetFolder();
        if( fd )
            printf("%s is at %s\n", pb.GetName(), fd.GetPath());
        else
            printf("Error: %s is not in any folder, impossible!\n", pb.GetName());
    }
}

Remark

See Also

DataRange::GetName

Header to Include

origin.h