PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [wd55] filter using Ole automation in a public folder
[wd55] filter using Ole automation in a public folder
Débuté par Theo van Vliet, 18 juin 2003 15:42 - 1 réponse
Posté le 18 juin 2003 - 15:42
Hi,
Is it possible to set a filter with a 'contains' operator
(example: sCriteria = "[Subject] CONTAINS '00000334'" )
or using a (VB??) function in the filter?
(Example : sCriteria = "InStr([Subject],'00000334') > 0 " )
using the find method of an outlook obj?
(objSelectionemail = objAllEmails>>Find(sCriteria))

Greetings,
Theo van Vliet
Posté le 18 juin 2003 - 18:59
Hi Theo,
Hi,
Is it possible to set a filter with a 'contains' operator
(example: sCriteria = "[Subject] CONTAINS '00000334'" )
or using a (VB??) function in the filter?
(Example : sCriteria = "InStr([Subject],'00000334') > 0 " )
using the find method of an outlook obj?
(objSelectionemail = objAllEmails>>Find(sCriteria))

That doesn't seems to be possible
VB help for the filter in the Find method:
-----
Comparison operators allowed within the filter expression include >, <, >=, <=, = and <>.
-----
So you have to try something like:
- IF position(myObj>>Subject(),"00000334")> 0 then ...
Greetings,
Peter
Greetings,
Theo van Vliet



http://www.xs4all.nl/~petervu