PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → [wd55] filter using Ole automation in a public folder
[wd55] filter using Ole automation in a public folder
Iniciado por t.vliet, jun., 18 2003 3:42 PM - 1 resposta
Publicado em junho, 18 2003 - 3:42 PM
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
Publicado em junho, 18 2003 - 6:59 PM
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