AddressBookAddress

From Xojo Documentation
Jump to: navigation, search

Class (inherits from Object)


Holds the fields making up an address for a Mac OS X Address Book.


Properties
City CountryCode StreetAddress
Country State Zip


Methods
Value Value


Examples

This example 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

See Also

AddressBook, AddressBookContact, AddressBookData, AddressBookGroup, AddressBookRecord classes.

Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About