From Xojo Documentation

Revision as of 19:07, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{DeprecatedItemItem|" to "{{DeprecatedItem|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As AddressBookData )

aAddressBookContact.FirstName = newAddressBookDataValue
AddressBookDataValue = aAddressBookContact.FirstName

Supported for all project types and targets.

FirstName entry.

Sample Code

This code adds a new contact with first and last names.

Dim book As New AddressBook
Dim myContact As AddressBookContact
book = System.AddressBook
myContact = New AddressBookContact

myContact.FirstName = "Xena"
myContact.LastName = "Smith"


If book.HasUnsavedChanges Then
If book.Save Then
MsgBox("The AddressBook was saved!")
End If
MsgBox("There were no unsaved changes!")
End If