Solved

What this statement does?

Posted on 2009-03-31
3
199 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks junges
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

10 Experts available now in Live!

Get 1:1 Help Now