Re: Obtain property value by name

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.
.



Relevant Pages

  • Re: OT: Can you still regiser Delphi 3?
    ...   Delphi does very well in that respect but it's really a code compiler ... and not a database Developer Tool. ... The classes in the supplied VCL give you basic access to database ...
    (alt.comp.lang.borland-delphi)
  • Re: problem tcpclient -> other server HELP
    ... not give you 32768 bytes in one go, and the DataAvailable property may ... client write in delphi and run on windows) that return a large ammount ... procedure TForm1.IdTCPServer1Disconnect(AContext: TIdContext); ...    Memo1.Lines.Add ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Delphi language support in CMake build system
    ... translator/interpreter for that matter), it does a sanity check by ... Delphi used to have a commandline compiler (in D3 it was called ...
    (comp.lang.pascal.delphi.misc)
  • Re: A question about my fifoqueue_mpmc ...
    ... If you have no time to translate it to delphi, i will try to do it ... Can you explain more your algorithm to me so that i can translate it ... Amine Moulay Ramdane. ...     return state;} ...
    (comp.programming.threads)
  • Re: A question about my fifoqueue_mpmc ...
    ... I know that you know a little bit of delphi pascal... ... you basically have a SPSC queue and that's fine. ... void init() { ...     return state;} ...
    (comp.programming.threads)