Project::ClearModified

Description

Mark the active project as not modified. This is usually done before exiting or before loading another project in order to avoid the prompt asking the user to save it.

Syntax

void ClearModified( )

Parameters

Return

void

Examples

EX1

// For this example to run, create a project, save it, and then modify it
// (for example by modifying the value in a worksheet cell).
void    run_Project_ClearModified()
{
    if (Project.IsModified())
        out_str("Project has been modified");
    else
        out_str("Project has NOT been modified");
    
    // Now clear the modified flag:
    Project.ClearModified();
    
    // Now it must be NOT modifed because we cleared it above.
    if (Project.IsModified())
        out_str("Project has been modified");
    else
        out_str("Project has NOT been modified");
}

Remark

See Also

DataRange::Undo

header to Include

origin.h