Class
AddressBookAddress
Warning
This item was deprecated in version 2019r2. There is no replacement.
Description
Holds the fields making up an address for a macOS Address Book.
Properties
Name |
Type |
Read-Only |
Shared |
---|---|---|---|
Methods
Name |
Parameters |
Returns |
Shared |
---|---|---|---|
Key As String |
|||
Property descriptions
AddressBookAddress.City
City As String
The City entry for the Address.
AddressBookAddress.Country
Country As String
The Country entry for the address.
AddressBookAddress.CountryCode
CountryCode As String
The ISO country code for the address. Two characters only.
AddressBookAddress.State
State As String
The State entry for the Address.
AddressBookAddress.StreetAddress
StreetAddress As String
The Street Address for the Address.
AddressBookAddress.Zip
Zip As String
The Zip Code entry for the address.
Method descriptions
AddressBookAddress.Value
Value(Key As String) As Variant
Assigns the passed NewValue to the specified property.
AddressBookAddress.Value
Value(Key As String, Assigns NewValue As Variant)
Assigns the passed NewValue to the specified property.
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
Compatibility
All project types on all supported operating systems.
See also
Object parent class; AddressBook, AddressBookContact, AddressBookData, AddressBookGroup, AddressBookRecord classes.