IsDirty

Returns whether report has been modified since last layout was loaded or initialized.

Syntax

object.IsDirty [= value]

The IsDirty property syntax has the following parts:

Part Description
object A valid ARDesigner object
value A Boolean value.

Settings

The settings for value are:

Setting Description
True The report layout has been modified.
False The report layout has not been modified.

Data Type

Boolean

Example

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If ARDesigner1.IsDirty Then
' Ask if report should be saved
Dim iSave As Integer
iSave = MsgBox("Save changes to the report?", _
vbYesNoCancel, "Save")
Select Case iSave
Case vbYes
'Save the Report
FileSave
Cancel = 0
Case vbNo
'Continue without saving
Cancel = 0
Case vbCancel
'Cancel Unload
Cancel = 1
End Select
End If
End Sub