AddressBook.HasUnsavedChanges

From Xojo Documentation

Revision as of 17:11, 12 August 2019 by Gperlman (talk | contribs)

Property (As Boolean )


aAddressBook.HasUnsavedChanges = newBooleanValue
or
BooleanValue = aAddressBook.HasUnsavedChanges

Supported for all project types and targets.

If True, a Save is needed. Call the Save method to save the changes.

Sample Code

Dim book As New AddressBook
book = System.AddressBook

If book.HasUnsavedChanges Then
If book.Save Then
MsgBox("The changes were successful!")
End If
Else
MsgBox("There were no unsaved changes!")
End If