AddressBookContact.Constructor(vcard as String)

From Xojo Documentation

Revision as of 17:26, 12 August 2019 by Gperlman (talk | contribs)

Constructor

AddressBookContact.Constructor([vcard as String])

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

Example

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

Dim Book As AddressBook
Dim myContact As AddressBookContact
book = System.AddressBook
myContact = Book.CurrentUser
For i As Integer = 0 To myContact.EmailAddresses.Count - 1
ListBox1.AddRow(myContact.emailAddresses.Value(i))
Next