Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / January 2004

Tip: Looking for answers? Try searching our database.

The links collection object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Max Carussi - 20 Jan 2004 09:56 GMT
I have to programmatically manage the links collection object. This object is included in every type of Oulook Item. Actually I can add contacts to this collection with the add method but the remove method returns an error (0xCFE20005).
Sob !!! Sue pls give me a hand
Max Carussi - 20 Jan 2004 10:51 GMT
By the way. Actually items from the link collection can be removed if the numerical form of the 'Index' parameter is specified in the 'Remove' method. The error is issued if the name is used. The documentation states that either the number or the name may be used as the 'Index' parameter. So the workaround is to enumerate all the items in the collection, find the item whose name matches the one that is to be removed, get the ordinal index and subsequently invoke the 'Remove' method with the number retrieved.
Max Carussi - 20 Jan 2004 16:21 GMT
The question about my previous post is: is it normal that an error is returned if an item is removed from a Links collection object using its name ? Is it a bug or the documentation is wrong ?
Sue Mosher [MVP] - 20 Jan 2004 17:37 GMT
I'd say the documentation is wrong.
Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> The question about my previous post is: is it normal that an error is returned if an item is removed from a Links collection object using its name
? Is it a bug or the documentation is wrong ?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.