AddressBookContact

From Xojo Documentation

Revision as of 18:51, 19 November 2009 by WikiSysop (talk) (Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Description

Holds a Contact record in a Mac OS X Address Book.


Super Class

AddressBookRecord

Properties

Name Type Description
Addresses AddressBookData The Addresses entry.
AIMScreenNames AddressBookData AIMScreenNames entry.
Birthday AddressBookData Birthday entry.
CompanyName AddressBookData Company Name entry.
EmailAddresses AddressBookData Email Addresses entries.
FirstName AddressBookData FirstName entry.
HomePage AddressBookData Home page entry.
ICQNumbers AddressBookData ICQNumbers entry.
JabberScreenNames AddressBookData Jabber screen names entry.
JobTitle AddressBookData Job title entry.
LastName AddressBookData Last Name entry.
MiddleName AddressBookData Middle Name entry.
MSNScreenNames AddressBookData MSN screen names entry.
Note AddressBookData Note entry.
PhoneNumbers AddressBookData Phone Numbers entries.
VCard String VCard format of Address Book entry.
YahooScreenNames AddressBookData Yahoo screen names entry.


Constructors

Name Parameters Description
AddressBookContact [vcard as String] Creates an AddressBookContact.

If the optional vcard is passed, populates it with the data in the vcard.


Notes

The methods of the AddressBookData class give you access to the labels, names, values, and other properties of AddressBookContact records. Use the Value method to get and set values.


Examples

This method gets the current user's email addresses. It uses the Count and Value methods of the AddressBookData class to do so

Dim myContact as AddressBookContact
book=System.AddressBook
myContact=Book.CurrentUser
For i=0 to myContact.emailAddresses.Count-1
ListBox1.AddRow myContact.emailAddresses.Value(i)
Next

The following method sets the value of the FirstName field.

Dim myContact as AddressBookContact
book=System.AddressBook
myContact=Book.CurrentUser
myContact.FirstName="Boris"
//or using AddressBookData.Value method
myContact.FirstName.Value="Boris"

See Also

AddressBook, AddressBookAddress, AddressBookData, AddressBookGroup, AddressBookRecord classes.