IPrxReport.IsDirty

Syntax

IsDirty: Boolean;

Description

The IsDirty property determines whether the regular report contains pending changes.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier.

Add links to the Metabase, Report and Tab system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Sheet: IPrxSheet;
    SheetTab: IPrxTable;
    Table: ITabSheet;
Begin
    MB := MetabaseClass.Active;
    // Get regular report
    Report := MB.ItemById("REPORT").Bind As IPrxReport;
    // Add a value to the A0 cell
    Sheet := Report.ActiveSheet;
    SheetTab := Sheet As IPrxTable;
    Table := SheetTab.TabSheet;
    Table.Cell(00).Value := "The A0 cell";
    If Report.IsDirty Then
        Debug.WriteLine("The report contains unsaved changes");
    Else
        Debug.WriteLine("All changes are saved");
    End If;
End Sub UserProc;

After executing the example the console displays whether there are unsaved changes in the regular report:

There are unsaved changes in the regular report

See also:

IPrxReport