ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Scheduler functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
SchedulerDeleteResource (Function)
In french: PlanningSupprimeRessource
Deletes a resource from a Scheduler control.
Caution: If the Scheduler control is linked to a data source, deletion is performed only in the field: appointments linked to the resource are not deleted from the data source..
Example
// Ajoute un rendez-vous pour ce soir
MonTitre is string
DébutRDV is DateTime
FinRDV is DateTime
NBressource is int

MonTitre = "Réunion commerciale"
DébutRDV = DateSys() + "17000000"
FinRDV = DateSys() + "17300000"

NBressource = SchedulerAddResource(PLN_Planning1, "Florence" + gStoredValue("Flo"))
SchedulerAddAppointment(PLN_Planning1, "Flo", MonTitre, DébutRDV)

MonTitre = "Réunion 2"
DébutRDV = DateSys() + "17300000"
FinRDV = DateSys() + "18000000"
SchedulerAddResource(PLN_Planning1, "Emmanuel" + gStoredValue("Manu"))
SchedulerAddAppointment(PLN_Planning1, "Manu", MonTitre, DébutRDV)

// Supprime une des ressources
ResSup is boolean
ResSup = SchedulerDeleteResource(PLN_Planning1, "Flo")
IF ResSup = True THEN
	Info("Ressource supprimée")
END
Syntax
<Result> = SchedulerDeleteResource(<Scheduler control> , <Resource>)
<Result>: Boolean
  • True if a resource was deleted,
  • False otherwise.
<Scheduler control>: Control name
Name of Scheduler control from which the resource will be deleted. This field may correspond to:
  • the Scheduler control of a window,
  • the Scheduler control of a page,
  • the Scheduler control of a report.
<Resource>: Character string
Name of resource to delete.
Note If resources in the Scheduler control field have been created with function SchedulerAddResource using function gStoredValue, this parameter must match the value specified in function gStoredValue for this resource.
Component: wd300mdl.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help