I have a need to update a personal address book from a file for a number of users. I already have an applet that goes through each PAB entry, deletes it (until the whole address book is empty), and then loads a whole list of addresses from a file. This applet uses AddressBook.AddContact(displayname)
Is there a similar AddressBook.UpdateContact(displayname) function?
What I’d like to do is leave alone the new entries the users have added themselves. If an entry exists in my file, AND in the PAB, then I’d like to replace the existing entry in the PAB with the entry from the file. I’m having trouble figuring out how to iterate through the PAB and replace existing entries. I don’t think I can delete and add, as that would get weird during “For each AddressBookEntry in AddressBook” ….
If you can point me in the direction of some sample code, that would be great. Thanks!
- You must be logged in to reply to this topic.