<div class="meta" robots="noindex">

</div>

Class

# AddressBookAddress

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. There is no replacement.

</div>

## Description

Holds the fields making up an address for a macOS Address Book.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                              | Type                             | Read-Only | Shared |
|---------------------------------------------------|----------------------------------|-----------|--------|
| `City<addressbookaddress.city>`                   | `String</api/data_types/string>` |           |        |
| `Country<addressbookaddress.country>`             | `String</api/data_types/string>` |           |        |
| `CountryCode<addressbookaddress.countrycode>`     | `String</api/data_types/string>` |           |        |
| `State<addressbookaddress.state>`                 | `String</api/data_types/string>` |           |        |
| `StreetAddress<addressbookaddress.streetaddress>` | `String</api/data_types/string>` |           |        |
| `Zip<addressbookaddress.zip>`                     | `String</api/data_types/string>` |           |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                              | Parameters                                                                                                               | Returns                            | Shared |
|-----------------------------------|--------------------------------------------------------------------------------------------------------------------------|------------------------------------|--------|
| `Value<addressbookaddress.value>` | Key As `String</api/data_types/string>`                                                                                  | `Variant</api/data_types/variant>` |        |
|                                   | Key As `String</api/data_types/string>`, `Assigns</api/language/assigns>` NewValue As `Variant</api/data_types/variant>` |                                    |        |

## Property descriptions

<div id="addressbookaddress.city">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

AddressBookAddress.City

**City** As `String</api/data_types/string>`

The City entry for the Address.

<div id="addressbookaddress.country">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

AddressBookAddress.Country

**Country** As `String</api/data_types/string>`

The Country entry for the address.

<div id="addressbookaddress.countrycode">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

AddressBookAddress.CountryCode

**CountryCode** As `String</api/data_types/string>`

The ISO country code for the address. Two characters only.

<div id="addressbookaddress.state">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

AddressBookAddress.State

**State** As `String</api/data_types/string>`

The State entry for the Address.

<div id="addressbookaddress.streetaddress">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

AddressBookAddress.StreetAddress

**StreetAddress** As `String</api/data_types/string>`

The Street Address for the Address.

<div id="addressbookaddress.zip">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

AddressBookAddress.Zip

**Zip** As `String</api/data_types/string>`

The Zip Code entry for the address.

## Method descriptions

<div id="addressbookaddress.value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

AddressBookAddress.Value

**Value**(Key As `String</api/data_types/string>`) As `Variant</api/data_types/variant>`

Assigns the passed *NewValue* to the specified property.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="rst-class">

forsearch

</div>

AddressBookAddress.Value

**Value**(Key As `String</api/data_types/string>`, `Assigns</api/language/assigns>` NewValue As `Variant</api/data_types/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</api/deprecated/textfield>`.

``` xojo
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</api/data_types/additional_types/object>` parent class; `AddressBook</api/deprecated/addressbook>`, `AddressBookContact</api/deprecated/addressbookcontact>`, `AddressBookData</api/deprecated/addressbookdata>`, `AddressBookGroup</api/deprecated/addressbookgroup>`, `AddressBookRecord</api/deprecated/addressbookrecord>` classes.
