Result of Adding Appointment to Google Calendar

I add an appointment to Google Calendar according to example, which is distributed with CloudPack:


procedure AddEvent;
var 
  li: TGCalendarItem;
begin
    li := AdvGCalendar1.Items.Add;
    ....
    AdvGCalendar1.Add(li);
end;

But I do not know, how can I check the result. Where can I check if the event was added and what was the error code/number, if the insert failed?

Hi,


If the event was added correctly the TGCalendarItem's ID property will be assigned.

If the insert failed you can review the log file to see if any errors have occurred.
Logging can be enabled by setting Logging to true and LogLevel to llDetail.
The LOG file is generated automatically in your machine's Documents folder.

Thank you for quick reply. But I need a result of adding/update/delete operation (error number or error text) without analyzing log file after every insert. The result can be returned as an exception, as additional parameter or for example as LastErrorMessage member of TAdvGCalendar class. Could you repair/improve the component behaviour? 

Thank you for y our
suggestion.

We'll investigate on improving error handling in a future version of TMS VCL
Cloud Pack.