|
[wd55] filter using Ole automation in a public folder |
Iniciado por t.vliet, 18,jun. 2003 15:42 - 1 respuesta |
| |
| | | |
|
| |
Publicado el 18,junio 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 |
| |
| |
| | | |
|
| | |
| |
Publicado el 18,junio 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 |
| |
| |
| | | |
|
| | | | |
| | |
|