Lazarus

Programming => General => Topic started by: daveinhull on March 15, 2019, 01:43:01 pm

Title: OLE Connection has .end as property but FPC sees it as end
Post by: daveinhull on March 15, 2019, 01:43:01 pm
Hi,

I've got an OLE connection to Outlook, but when I try to find the end time of an appointment I need to use something like
Code: Pascal  [Select][+][-]
  1. EndTime := VarToStr(OLAppointment.end);
but FPC sees the .end (which is a valid property of an Outlook appointment as the reserved ord end and errors.

Is there anyway around this?

Many thanks
Dave
Title: Re: OLE Connection has .end as property but FPC sees it as end
Post by: howardpc on March 15, 2019, 01:48:09 pm
Possibly
Code: Pascal  [Select][+][-]
  1. EndTime := VarToStr(OLAppointment.&end);
might work?
Title: Re: OLE Connection has .end as property but FPC sees it as end
Post by: daveinhull on March 15, 2019, 03:14:30 pm
Many thanks howardpc, worked a treat :D
TinyPortal © 2005-2018