How to difference contacts from groups

J

Juan Rodriguez

Hi !
I've noticed looping through ContactItems that contacts and groups are
stored right there.
The only way of difference them is that Groups do not have a name or there
is a property ?
TIA
--
Juan M. Rodriguez
Servicios Profesionales
teg solutions argentina s.a.
[email protected]
Tel: 54-11-4590-2222
Fax: 54-11-4590-2201
www.tegsolutions.com

La calidad no está en el trabajo que hace la gente, sino en la gente que
hace el trabajo.
 
E

Eric Legault [MVP - Outlook]

Check the value of the Class property of the Item object: 40 or olContact
indicates a Contact, 69 or olDistributionList indicates Distribution Lists
(what you are calling Groups).
 
S

Sue Mosher [MVP-Outlook]

Outlook does not store groups. What you are seeing are DistListItem objects,
i.e. distribution lists . You can use the Class property to distinguish
between them and ContactItem objects.
 
J

Juan Rodriguez

Thanks both of you !
Sue Mosher said:
Outlook does not store groups. What you are seeing are DistListItem objects,
i.e. distribution lists . You can use the Class property to distinguish
between them and ContactItem objects.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top