IsDirty Property

       

True if the PageWindowEx object has changed since the last time the object was saved. Read-write Boolean.

expression.IsDirty

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example checks if the active page has changed; if it has, the program executes the Save method for the active page.

Private Sub DirtyDocument()
    Dim myPage As PageWindowEx
    Dim myDoc As DispFPHTMLDocument
    Dim mySaveCheck As Boolean

    Set myDoc = WebWindows(0).PageWindows(0).Document

    Call myDoc.body.insertAdjacentHTML("BeforeEnd", _
                "<b> modified </b>")
    If ActivePageWindow.IsDirty = True Then
            ActivePageWindow.Save
    End If
End Sub