|
 |
asp_cdo thread: Filtering Contacts by MessageFilter with criteria
Message #1 by "Dante Tang" <dante.tang@s...> on Tue, 20 Nov 2001 12:53:57
|
|
I intended to write a program to list out all contacts, with a specific
leading character of the Display Name field (&H3001001E). e.g. Alex,
Andrew, Amy, etc. However, after adding the following two statements, I
got more than what I exactly want...
Set CdoMessageFilter = CdoMessages.Filter
CdoMessageFilter.Fields.Add &H3001001E, "a"
All the display name contain character "a" were listed out. Does anyone
know how to specify a criteria? So that all display name with a
leading "a" will be listed out?
Any comment or advice are highly appreciated.
Thank you very much in advance.
Dante
Message #2 by "Siegfried Weber" <sweber@c...> on Thu, 22 Nov 2001 02:11:35 +0100
|
|
The CDO 1.21 message filter unfortunately doesn't allow any criteria.
The only thing you can set is if the filter is AND'ed (if using more
than one property) or inverse (using NOT).
<Siegfried />
> -----Original Message-----
> From: Dante Tang [mailto:dante.tang@s...]
> Sent: Tuesday, November 20, 2001 1:54 PM
> To: ASP CDO
> Subject: [asp_cdo] Filtering Contacts by MessageFilter with criteria
>
> I intended to write a program to list out all contacts, with a
specific
> leading character of the Display Name field (&H3001001E). e.g. Alex,
> Andrew, Amy, etc. However, after adding the following two statements,
I
> got more than what I exactly want...
>
>
> Set CdoMessageFilter =3D CdoMessages.Filter
> CdoMessageFilter.Fields.Add &H3001001E, "a"
>
>
> All the display name contain character "a" were listed out. Does
anyone
> know how to specify a criteria? So that all display name with a
> leading "a" will be listed out?
>
> Any comment or advice are highly appreciated.
>
> Thank you very much in advance.
>
> Dante
>
$subst('Email.Unsub')
|
|
 |