
Translated Properties - Find, Restrict, and Sort
Not that I know of using the Outlook object model. You could use CDO
and use CDO property tags, those should mostly be language
independent. You can set a MessageFilter object on the Messages
collection of a folder to get a restricted collection.
Categories would be a special case however, since it is a multivalued
property that would be treated as a Variant array. To see how to read
categories using CDO see
http://www.cdolive.com/cdo5.htm#AccessCategories
--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning Visual Basic 6 Application Development, Wrox
Press
Quote:
> Is there a way to use Find, Restrict and Sort without referencing
the
> translated property name. For instance in Spanish the following
must be
> used:
> Call objItems.Sort("Recibido", True)
> Set objResItem = objItems.Find("[Categoras] =
''SomeCategory'")
> While in English you need to use:
> Call objItems.Sort("Received", True)
> Set objResItem = objItems.Find("[Categories] ='SomeCategory'")
> This means that for a script to execute we must know the translated
values
> for each language for the properties we use.
> There must be a better way.
> Thanks in advance,
> Alan