PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Deleting calendars
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Deletes data from the Google server. The created or updated data is contained in a variable that corresponds to the service used:
Warning
Since June 15, 2021, the Google Contacts API used by this feature to manage contacts and contact groups is no longer available (https://developers.google.com/contacts/v3/announcement).
To use Google contacts, refer to the People API published by Google as a replacement : https://developers.google.com/people. RESTSend allows you to easily integrate a REST API in your development projects.
Example
// Connection
Cnt is gglConnection
...
IF Cnt.Connect() =False THEN
Error(ErrorInfo())
END
 
// Retrieve the "Work" calendar
arrCalendar is array of 0 gglCalendar
arrCalendar = Cnt.ListCalendar(gglUser)
// Display the title of each calendar
Calendar is gglCalendar
FOR EACH Calendar OF arrCalendar
IF Calendar.Title = "Work" THEN
  // Delete the calendar
  Cnt.Delete(Calendar)
END
END
Syntax
<Result> = <Google connection>.Delete(<Google element>)
<Result>: Boolean
  • True if the deletion was performed,
  • False if an error occurred. To get more details on the error, use ErrorInfo.
<Google connection>: gglConnection variable
Name of the gglConnection variable to be used. This connection was validated by <gglConnection variable>.Connect.
<Google element>: Variable that corresponds to the type to delete
Element to delete. This parameter can correspond to:
  • Name of the gglCalendar variable that corresponds to the calendar to be deleted.
  • Name of the gglContact variable that corresponds to the contact to be deleted.
  • Name of the gglContactGroup variable that corresponds to the contact group to be deleted.
Remarks

Deleting calendars

To delete a calendar, this calendar must have been retrieved by <gglConnection variable>.ListCalendar associated with the gglUser constant. Otherwise, an "InternalServerError" is returned by the server.
Component: wd270ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment