Translated Properties - Find, Restrict, and Sort 
Author Message
 Translated Properties - Find, Restrict, and Sort

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



Tue, 09 Mar 2004 21:38:55 GMT  
 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



Tue, 09 Mar 2004 21:56:14 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to use Restrict or Find with second-level properties

2. sorting listbox with sorted property on run time

3. HFlexgrid .Sort Property - Invalid Property Value

4. Data Control: Recordsource-Property restricted to 255 Characters ??

5. The scoop on hidden, restricted properties

6. HOWTO: Restrict access to public properties (or at least its data)

7. Creating Items collection using Find method instead of Restrict

8. Restrict/Find w/ [subject]= {weird stuff}

9. Find or restrict

10. Partial Matches using Restrict or Find

11. Find and Restrict fields

12. Restrict or Find method to get items with attachments

 

 
Powered by phpBB® Forum Software