Re: Obtain property value by name
- From: MB34 <mrbaseball34@xxxxxxxxxxx>
- Date: Wed, 8 Jul 2009 12:17:40 -0700 (PDT)
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:
{Delphi}
function getPropValue(Propname: String): Variant;
begin
Result := AppointmentItem. ?????
end;
You need to handle every supported case, e.g.:
Select Case Propname
Case "Start": getPropValue=Item.Start
Case "Subject": getPropValue=Item.Subject
End Select
You mean that there is no way without handling each property in a case
statement?
The Delphi Outlook object model does not expose the ItemProperties
either.
.
- References:
- Obtain property value by name
- From: MB34
- Re: Obtain property value by name
- From: Michael Bauer [MVP - Outlook]
- Obtain property value by name
- Prev by Date: RE: STILL IS NOT AVAILABLE... Run A Script not listed in rules wiz
- Next by Date: Re: Obtain property value by name
- Previous by thread: Re: Obtain property value by name
- Next by thread: Re: Obtain property value by name
- Index(es):
Relevant Pages
|