Issue with FilterEdit method.

I

iterator

Hello.
I am writing a little add-in for MS Project with C++/ATL and I have an issue
with localization of possible values for function parameter.

Application.FilterEdit method has parameter "Test" wich can be one of
"equals", "does not equal", etc... strings. This strings are diffrent in
localized MS Project versions, Japanese for the sample. When I passing
English values to such localized version of MS Project, application fails.

My question is: How i can determinate possible localized values of "Test"
parameter in runtime? Or how I can order MS Project to understand values on
English on any localized version of MS Project?

Big thanks!)
 
J

Jan De Messemaeker

Hi,

I remember a similar question some time ago, and I don't remember whether
there was any positive reply.
There is an elegant workaround however. Set a flag field to true or false
within your code and use a filter that just compares this flag field to true
or false.
Hope this helps.
 
I

iterator

Thanks, "Jan De Messemaeker.
Hmm... But I don't exactly understand what do you mean under using of filter
which compares any flag field. In my first questinon I trying to do the same,
i was setting "FlagN" in my tasks, then try to build the filter which
compares this FlagN with true. And for this filter setup I need localized
"equals" value for FilterEdit method.
 
J

Jan De Messemaeker

Hi,

You are right, and I realized that the second I sent the file.
I tried to call it back but that doen't seem to work from Outlook Express.
I kept on hoping it would diuisappear so I failed to apologize.

All of this to say I don't see a response other that create the filter in
the different languages and use Organizermoveitem to pass it into the file
when needed.

Sorry again for the useless first post.
HTH
 

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

Top