471,334 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

String manupilation

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.OutlookIt ems.Find("[Subject] =
'" + reminderString + "'");

Feb 6 '06 #1
1 1198
Wolf wrote:
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.OutlookIt ems.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

Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Krakatioison | last post: by
5 posts views Thread by Stu Cazzo | last post: by
9 posts views Thread by John F Dutcher | last post: by
2 posts views Thread by chris | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.