AddressBookContact.Constructor(vcard as String)

From Xojo Documentation

Revision as of 19:07, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{DeprecatedItemItem|" to "{{DeprecatedItem|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


AddressBookContact.Constructor([vcard as String])

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


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