Express > Express Assembly Interfaces > IEaxAnalyzerOptions > IEaxAnalyzerOptions.IgnoreDirtyOnClose
IgnoreDirtyOnClose: Boolean;
The IgnoreDirtyOnClose property determines status of the Do not Ask Confirmation on Closing Modified Report option.
If this option is enabled, all unsaved changes are cancelled.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.
Add links to the Express and Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
Opt: IEaxAnalyzerOptions;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("EXPRESS_REPORT").Edit;
Expr := MObj As IEaxAnalyzer;
Opt := Expr.Options;
Opt.IgnoreDirtyOnClose := True;
MObj.Save;
End Sub UserProc;
After executing the example the Do not Ask Confirmation on Closing Modified Report option is enabled.
See also: