AddressBookAddress
From Xojo Documentation
This item was deprecated in version 2019r2. |
Class (inherits from Object)
This class is only available on the macOS platform. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this class on an incompatible platform. |
Holds the fields making up an address for a macOS Address Book.
Properties | ||||||
|
Methods | ||
|
Sample Code
This code gets the current user’s address and puts it in a TextField.
Dim book As AddressBook
Dim address As AddressBookAddress
Dim data As AddressBookData
Dim s As String
book = System.AddressBook
data = book.CurrentUser.Addresses
If data.Count > 0 Then
address = data.Value(0)
s = address.StreetAddress + Address.City + ", " + Address.State + " " + address.Zip
Else
s = "Count is zero!"
End If
TextField1.Text = s
Dim address As AddressBookAddress
Dim data As AddressBookData
Dim s As String
book = System.AddressBook
data = book.CurrentUser.Addresses
If data.Count > 0 Then
address = data.Value(0)
s = address.StreetAddress + Address.City + ", " + Address.State + " " + address.Zip
Else
s = "Count is zero!"
End If
TextField1.Text = s
See Also
AddressBook, AddressBookContact, AddressBookData, AddressBookGroup, AddressBookRecord classes.