String manupilation

  • Thread starter Thread starter Wolf
  • Start date Start date
W

Wolf

Hi

Hope someone can help me, I am trying to pass in a string in part nr 2.
The string is defined in nr 1.Somehow it breaks because of the '
The string I'm passing in should be something like: John tester's
birthday


1)string reminderString = Contact.Name + " " + horizonContact.Surname +
"'s BirthDay";


2)Outlook.AppointmentItem reminderItem =
(Outlook.AppointmentItem)ThisApplication.OutlookItems.Find("[Subject] =
'" + reminderString + "'");
 
Wolf said:
Hope someone can help me, I am trying to pass in a string in part nr 2.
The string is defined in nr 1.Somehow it breaks because of the '
The string I'm passing in should be something like: John tester's
birthday


1)string reminderString = Contact.Name + " " + horizonContact.Surname +
"'s BirthDay";


2)Outlook.AppointmentItem reminderItem =
(Outlook.AppointmentItem)ThisApplication.OutlookItems.Find("[Subject] =
'" + reminderString + "'");

It seems to me that your question is really about how to "escape"
strings in the Outlook "Find" API. I'm afraid I don't know that - but
I'd look in the Outlook API documentation and ask in an Outlook
programming group if you can't find it in the docs.

When you know the string you need to build but can't work out how to
build it in C#, then post another question here.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top