> Test it both ways using an OR clause.
>
[quoted text clipped - 28 lines]
> > Thanks.
> > Robin
Hmmm. Have you tried doubling up any single quotes to escape them when
they're in the EmailSubject string? Then you could try just using single
quotes surrounding the EmailSubject part of the restriction.
string test = EmailSubject;
// first clause has single quote within double quotes,
// second clause has 2 single quotes within double quotes.
EmailSubject = test.Replace("'", "''");

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hi Ken,
>
[quoted text clipped - 9 lines]
> Regards,
> Robin
PGS123 - 23 Apr 2008 04:41 GMT
No luck. I think the problem here is the property of ConversationTopic is
readonly. Even if it is a read/write property it will be a hassle to replace
each and everyone of the same ConversationTopic due to performance issues.
Another issue is that the Restrict method will hunt for all identical
ConversationTopic in Outlook folders and thus changing a particular instance
of the ConversationTopic will not help.
Robin
> Hmmm. Have you tried doubling up any single quotes to escape them when
> they're in the EmailSubject string? Then you could try just using single
[quoted text clipped - 19 lines]
> > Regards,
> > Robin
Ken Slovak - [MVP - Outlook] - 23 Apr 2008 14:27 GMT
I wasn't suggesting trying to change the read-only ConversationTopic
property. I was suggesting trying massaging the EmailSubject variable that
way. Other than that I have no other suggestions.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> No luck. I think the problem here is the property of ConversationTopic is
> readonly. Even if it is a read/write property it will be a hassle to
[quoted text clipped - 6 lines]
>
> Robin
PGS123 - 24 Apr 2008 01:40 GMT
Hi Ken,
It's ok. Thanks for your help thus far.
Robin
> I wasn't suggesting trying to change the read-only ConversationTopic
> property. I was suggesting trying massaging the EmailSubject variable that
[quoted text clipped - 10 lines]
> >
> > Robin