PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
SchedulerDeleteResource (Function)
In French: PlanningSupprimeRessource
Deletes a resource from a Scheduler control.
Caution: If the Scheduler control is linked to a data source, the deletion is performed in the control only: the appointments linked to the resource are not deleted from the data source.
Versions 17 and later
WINDEVReports and Queries This function can now be used to handle the Scheduler controls found in a report.
New in version 17
WINDEVReports and Queries This function can now be used to handle the Scheduler controls found in a report.
WINDEVReports and Queries This function can now be used to handle the Scheduler controls found in a report.
Versions 21 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App In Universal Windows 10 App mode, this function can only be used to handle the Scheduler controls found in a report.
New in version 21
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App In Universal Windows 10 App mode, this function can only be used to handle the Scheduler controls found in a report.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App In Universal Windows 10 App mode, this function can only be used to handle the Scheduler controls found in a report.
Example
// Adds an appointment for tonight
MyTitle is string
StartAPT is DateTime
EndAPT is DateTime
NbResource is int

MyTitle = "Sales meeting"
StartAPT = DateSys() + "17000000"
EndAPT = DateSys() + "17300000"

NbResource = SchedulerAddResource(SCH_Schedule1, "Vincent" + gLink("Vince"))
SchedulerAddAppointment(SCH_Schedule1, "Vince", MyTitle, StartAPT)

MyTitle = "Meeting 2"
StartAPT = DateSys() + "17300000"
EndAPT = DateSys() + "18000000"
SchedulerAddResource(SCH_Scheduler1, "Tommy" + gLink("Tom"))
SchedulerAddAppointment(SCH_Schedule1, "Tom", MyTitle, StartAPT)

// Deletes one of the resources
ResDel is boolean
ResDel = SchedulerDeleteResource(SCH_Schedule1, "Vince")
IF ResDel = True THEN
Info("Resource deleted")
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 control can correspond to:
  • the Scheduler control of a window,
  • the Scheduler control of a page,
  • Versions 17 and later
    the Scheduler control of a report.
    New in version 17
    the Scheduler control of a report.
    the Scheduler control of a report.
<Resource>: Character string (with quotes)
Name of resource to delete.
Note: If the schedule resources have been created with SchedulerAddResource by using gLink, this parameter must correspond to the value specified in gLink for this resource.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mdl.dll
Linux wd230mdl.so
Android wd230android.jar
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment