Recent

Author Topic: OLE Connection has .end as property but FPC sees it as end  (Read 247 times)

daveinhull

  • Full Member
  • ***
  • Posts: 249
  • 1 divided by nothing must still be 1!
OLE Connection has .end as property but FPC sees it as end
« 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
Version #:1.8.4 Date 2019-01-08 FPC Version: 3.0.4 and SVN Revision 57972 for x86_64-win64-win32/win64

howardpc

  • Hero Member
  • *****
  • Posts: 2986
Re: OLE Connection has .end as property but FPC sees it as end
« Reply #1 on: March 15, 2019, 01:48:09 pm »
Possibly
Code: Pascal  [Select]
  1. EndTime := VarToStr(OLAppointment.&end);
might work?

daveinhull

  • Full Member
  • ***
  • Posts: 249
  • 1 divided by nothing must still be 1!
Re: OLE Connection has .end as property but FPC sees it as end
« Reply #2 on: March 15, 2019, 03:14:30 pm »
Many thanks howardpc, worked a treat :D
Version #:1.8.4 Date 2019-01-08 FPC Version: 3.0.4 and SVN Revision 57972 for x86_64-win64-win32/win64