PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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:
  • gglCalendar variable to delete a calendar.
  • gglContact variable to delete a contact.
  • gglContactGroup variable to delete a group of contacts.
  • gglAlbum variable to delete a Picasa album.
  • gglPhoto variable to delete a photo from a Picasa album.
  • gglDocument variable to delete a document.
    From October 14th 2012, Google does not advise you to use this feature. This feature will no longer be supported by Google from April 2015.
You also have the ability to delete elements from a Google AdWords marketing campaign.
Example
// Connection
Cnt is gglConnection
...
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
END

// Retrieve the "Work" calendar
arrCalendar is array of 0 gglCalendar
arrCalendar = GglListCalendar(Cnt, gglUser)
// Display the title of each calendar
Calendar is gglCalendar
FOR EACH Calendar OF arrCalendar
IF Calendar..Title = "Work" THEN
// Delete the calendar
GglDelete(Cnt, Calendar)
END
END
Syntax

Deleting a Google element Hide the details

<Result> = GglDelete(<Google Connection> , <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 gglConnection variable to use. This connection was validated by GglConnect.
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 gglPhoto variable corresponding to the photo to delete from the Picasa album.
  • Name of gglDocument variable corresponding to the document to delete.
    From October 14th 2012, Google does not advise you to use this feature. This feature will no longer be supported by Google from April 2015.
Warning
From version 18, the following syntax is not available anymore.

Deleting a criterion from an AdWord campaign Hide the details

<Result> = GglDelete(<AdWord Connection> , <Campaign Identifier> , <Criterion Identifier>)
<Result>: Boolean
  • True if the deletion was performed,
  • False if an error occurred. To find out the error details, use ErrorInfo.
<AdWord Connection>: gglAdWConnection variable
Name of the gglAdWConnection variable to use.
<Campaign Identifier>: Unicode character string (with quotes)
Identifier of the AdWords campaign to use.
<Criterion Identifier>: Array of character strings
Name of the array containing the criteria to delete.
Remarks

Deleting calendars

To delete a calendar, this calendar must have been retrieved by GglListCalendar associated with the gglUser constant. Otherwise, an "InternalServerError" is returned by the server.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230ggl.dll
Windows Mobile wp230ggl.dll
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment