Search the web
Sign In
New User? Sign Up
outlook-dev · Outlook Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Obtain property value by name   Message List  
Reply | Forward Message #27943 of 28048 |
RE: Obtain property value by name

Use the ItemProperties collection for that, it can take a property name instead of an index value.
 
VBA, where oAppt == an open appointment item:
 
Dim Result As Variant
Dim propName As String
 
propName = "ConversationTopic"
Result = oAppt.ItemProperties.Item(propName).Value
Debug.Print Result
 
Ken Slovak
Slovak Technical Services, Inc.
 


From: outlook-dev@yahoogroups.com [mailto:outlook-dev@yahoogroups.com] On Behalf Of mr_delphi_developer
Sent: Wednesday, July 08, 2009 12:17 PM
To: outlook-dev@yahoogroups.com
Subject: Obtain property value by name

Need to access Appointment property by propertyname.
How to do that?

Let's say I want to write a function and pass a property name and then
return the value of the property:
{Delphi}
function getPropValue(Propname: String): Variant;
begin
Result := AppointmentItem. ?????
end;



Wed Jul 8, 2009 6:04 pm

kenslovak2000
Offline Offline
Send Email Send Email

Forward
Message #27943 of 28048 |
Expand Messages Author Sort by Date

Need to access Appointment property by propertyname. How to do that? Let's say I want to write a function and pass a property name and then return the value of...
mr_delphi_developer
mr_delphi_de...
Offline Send Email
Jul 8, 2009
5:57 pm

Use the ItemProperties collection for that, it can take a property name instead of an index value. VBA, where oAppt == an open appointment item: Dim Result As...
Ken Slovak
kenslovak2000
Offline Send Email
Jul 8, 2009
6:04 pm

The ItemProperties property is not exposed in the default Delphi imported Outlook2000.pas file. Here is how I'm doing it with succcess: const EmptyDispParams:...
mr_delphi_developer
mr_delphi_de...
Offline Send Email
Jul 14, 2009
2:00 pm

It is not exposed because Outlook 2000 does not have that property. Import the type library on a machine that has Outlook 2003 installed. From:...
Dmitry Streblechenko
dimastr2001
Offline Send Email
Jul 14, 2009
2:10 pm

If the interface provided only covers Outlook 2000 then anything added after that won't be there. ItemProperties was added to the OOM later than Outlook 2000. ...
Ken Slovak
kenslovak2000
Offline Send Email
Jul 14, 2009
2:11 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help