PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
<Scheduler>.DeleteResource (Function)
In french: <Planning>.SupprimeRessource
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 21 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for 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 iPhone/iPad applications.
Android This function is now available for 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 iPhone/iPad applications.
Android This function is now available for 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
// Ajoute un rendez-vous pour ce soir
MonTitre est une chaîne
DébutRDV est un DateHeure
FinRDV est un DateHeure
NBressource est un entier
 
MonTitre = "Réunion commerciale"
DébutRDV = DateSys() + "17000000"
FinRDV = DateSys() + "17300000"
 
NBressource = PLN_Planning1.AjouteRessource("Florence" + gValeurMémorisée("Flo"))
PLN_Planning1.AjouteRendezVous("Flo", MonTitre, DébutRDV)
 
MonTitre = "Réunion 2"
DébutRDV = DateSys() + "17300000"
FinRDV = DateSys() + "18000000"
PLN_Planning1.AjouteRessource("Emmanuel" + gValeurMémorisée("Manu"))
PLN_Planning1.AjouteRendezVous("Manu", MonTitre, DébutRDV)
 
// Supprime une des ressources
ResSup est un booléen
ResSup = PLN_Planning1.SupprimeRessource("Flo")
SI ResSup = Vrai ALORS
Info("Ressource supprimée")
FIN
Syntax
<Result> = <Scheduler control>.DeleteResource(<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
Name of resource to delete.
Remark: If the resources of the Scheduler control have been created with <Scheduler>.AddResource by using gStoredValue, this parameter must correspond to the value specified in gStoredValue for this resource.
Component: wd270mdl.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment