isDirty Property

Microsoft FrontPage Visual Basic

isDirty Property

Returns True if the specified document has been modified since it was last saved. Read/write Boolean.

expression.external

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

Example

The following example saves the active document if the user has made changes.

    Private Sub GetExternal()
    Dim objPageWindow As PageWindow

    Set objPageWindow = ActiveDocument.parentWindow.external

    If objPageWindow.IsDirty = True Then
        objPageWindow.Save
    End If
End Sub