Unable to remove the DefaultEmailAddress using mycontact.DefaultEmailAddress.Remove(0) API.

2 views
Skip to first unread message

Amogh

unread,
Aug 28, 2007, 12:10:24 AM8/28/07
to Nektra-NKTWAB, amo...@yahoo.com
Hello Sir,
I am trying to replace the DefaultEmailAddress of a
particular conact with another EmailAddress, for which I am using the
DefaultEmailAddress.Remove API to remove the defaultEmailAddress and
add a new EmailAddress to replace it.

But the API mycontact.DefaultEmailAddress.Remove(0) is not removing
any of the characters in that DefaultEmailAddress and the EmailAddress
is remaining the same. Can you please help me in removing the
DefaultEmailAddress and replacing it. Thanks a lot in advance.

Thanks and Regards
Amogh G.R.

Federico Zaina

unread,
Sep 4, 2007, 11:32:35 AM9/4/07
to Nektra...@googlegroups.com
Hello Amogh:

Sorry about the delay.
The DefaultEmailAddress method does not contain a Remove option. It just
gets or sets the value.
To get the default email address, having the NKTWABLib.contact object
you should do:

dim address as string
address = contact.DefaultEmailAddress

To change a the Default email address, having the NKTWABLib.contact
object you should do:

contact.DefaultEmailAddress = "newa...@newdomain.com"
contact.Save


Thank you for contacting Nektra's NKTWab Support.

Regards,

Federico

--
Nektra Advanced Computing
http://www.nektra.com

Reply all
Reply to author
Forward
0 new messages