PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Deleting calendars
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Deletes data from the Google server. The created or updated data is contained in a variable corresponding to the service used:
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

Deleting a Google element Hide the details

<Result> = <Google connection>.Delete(<Google element>)
<Result>: Boolean
  • True if the deletion was performed,
  • False if an error occurred. To find out the error details, use ErrorInfo.
<Google connection>: gglConnection variable
Name of the gglConnection variable to use. This connection was validated by <gglConnection variable>.Connect.
Versions 20 and later
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
New in version 20
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
<Google element>: Variable corresponding to the type to delete
Element to delete. This parameter can correspond to:
  • Name of gglCalendar variable corresponding to the calendar to delete.
  • Name of gglContact variable corresponding to the contact to delete.
  • Name of gglContactGroup variable corresponding to the group of contacts to delete.
  • Name of gglAlbum variable corresponding to the Picasa album to delete.
  • Name of the gglPhoto variable corresponding to the photo to delete from the Picasa album.
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 : wd250ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment