Using property instead of properties.item 
Author Message
 Using property instead of properties.item

I have some code which sets a property type object to a
item out of the properties collection. The property is a
user defined property.

The code I use is:

Dim oProperty As Property
Dim oProperties As Properties

Set oProperties = oContact.Properties
Set oProperty = oProperties.Item("My Property")
If oProperties.Item("My Property").Name = oProperty.Name
    MsgBox "Same"
    MsgBox "Different"
End If

Depending on the property name, it sometimes
returns "Same" and sometimes returns "Different". Because
of this I've had to change all my code to use
oProperties.Item("My Property") instead of the more
efficient oProperty.

My question is, is this a bug or am I doing something

Wed, 26 Oct 2005 19:30:14 GMT  
 [ 1 post ] 

 Relevant Pages 


2. Adjusting size of a ComboBox item using DropDownWidth property

3. Error using Item Property Of files collection

4. Using the Property Browser for aetting app Properties.

5. Creating Items collection using Find method instead of Restrict

6. Creating Items collection using Find method instead of Restrict

7. Using a main form to control the edit properties of a subform using VBA

8. Custom item and flag property

9. Appointment item can not acces contacts properties (VB)

10. get all properties of contact item in outlook2000

11. AdressList Item properties??

12. Reference to Notes property of a Contact item


Powered by phpBB® Forum Software