Solved

What this statement does?

Posted on 2009-03-31
3
200 Views
Last Modified: 2013-12-17
foreach (System.Data.DataRow PacktDataRow in PacktDataTable.Rows)
                {
                  Outlook.ContactItem PacktExistingContact = (Outlook.ContactItem)oContactItems.Find("[Email1Address] ='" + PacktDataRow["Email"] + "'");
----
----
----
}

Where oCoontactItems is,
   Outlook.Items oContactItems = oContactFolder.Items.Restrict("[MessageClass]='IPM.Contact'");
 PacktDataRow is a datarow
0
Comment
Question by:johny_bravo1
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Daniel Junges earned 500 total points
ID: 24027560
it iterates through all email adress present on PacktDataTable Email field and looks if it is present on you Outlook contacts.
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 24027580
Thanks junges,
what I want is exactly reverse.
I want to iterate through Oulook contacts and check whether that Email is present in Datatable.
??
0
 
LVL 8

Author Closing Comment

by:johny_bravo1
ID: 31564747
Thanks junges
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now