From Xojo Documentation

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

Property (As AddressBookData )

aAddressBookContact.LastName = newAddressBookDataValue
AddressBookDataValue = aAddressBookContact.LastName

Supported for all project types and targets.

Last Name entry.

Sample Code

The following code adds the LastName field to a new contact.

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