How are you able to read AddressBook data that is not already part of
the AddressBookContact class?
Dim book as AddressBook
Dim Contacts() as AddressBookContact
Dim data as AddressBookData
Dim c, i as Integer
Dim s as String
// grab current AddressBook
book=System.AddressBook
// import the contacts
Contacts=book.Contacts
// c is needed to separate the listbox row cout from the contacts
ubound count
c = 0
// populate list box with contacts
For i = 0 to UBound(Contacts)
s = Contacts(i).Value("Nickname")
ListBox_ContactList.AddRow(s)
Next
In addition, I want to be able to add my own data and I am not exactly
sure how to do that... I assume that I just make up my own label As
String and get and set the value from there.
Just reverse the above
Contacts(i).Value("Nickname") = "Jay"
The AddressBookRecord super class has a Value() method, but this
method takes a string value and the only information I have found on
the Apple website involves using Constants instead of the actual
string label.
These are the different fields that I know of;
UID:S
Modification:S
Creation:S
Last:S
LastPhonetic:S
First:S
FirstPhonetic:S
Middle:S
MiddlePhonetic:S
Nickname:S
Email:S
HomePage:S
Title:S
AIMInstant:B
ABRelatedNames:B
ABDepartment:S
YahooInstant:B
Note:S
Suffix:S
Address:B
ICQInstant:B
MSNInstant:B
ABPersonFlags:I (is it a company?)
Phone:B
MaidenName:S
Birthday:S
ABDate:B
JabberInstant:B
Organization:S
JobTitle:S
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>