realbasic-nug
[Top] [All Lists]

Re: Adding an AddressBook entry

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Adding an AddressBook entry
From: "Dennis Birch" <dsbirch at qwest dot net>
Date: Mon, 31 May 2004 13:48:45 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
References: <p06020408bcdef47490db at [10 dot 0 dot 0 dot 3]> <9A28E1C6-B22D-11D8-B45A-000A959DF1D2 at realsoftware dot com> <7AE598CA-B33E-11D8-86CD-003065A85F80 at cox dot net>
At 1:09 PM -0700 5/31/04, David Austin wrote:
On May 30, 2004, at 4:36 AM, Jonathan Johnson wrote:

 dim ab as new AddressBook
  dim contact as AddressBookContact

  contact = new AddressBookContact
  contact.FirstName = "Foo"
  contact.LastName = "Bar"

  ab.Add contact
  call ab.Save

So, this works but can you show an example of using the AddressBookAddress class to set values and then add the contact? All the examples in the LR get values. There are no examples of setting values.

I've tried and I give up!

I came up with a solution that works for me for now. The AddressbookContact lets you create an instance with a constructor that includes a VCard string. I wrote a routine in my application's Client class that outputs a VCard string for use with that constructor. It works just fine in my tests so far.

I would prefer to be able to add AddressBook entries using the AddressBookAddress class, but this topic seems to have died on the vine as far solutions for doing that from anybody at RS.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>