AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones del planificador
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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..
Ejemplo
// 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"
 
ResourceNum = SCH_Schedule1.AddResource("Florence" + gStoredValue("Flo"))
SCH_Scheduler1.AddAppointment("Flo", MyTitle, StartAPT)
 
MyTitle = "Meeting 2"
StartAPT = DateSys() + "17300000"
EndAPT = DateSys() + "18000000"
SCH_Schedule1.AddResource("Thomas" + gStoredValue("Tom"))
SCH_Scheduler1.AddAppointment("Tom", MyTitle, StartAPT)
 
// Deletes one of the resources
ResDel is boolean
ResDel = SCH_Scheduler1.DeleteResource("Flo")
IF ResDel = True THEN
Info("Resource deleted")
END
Sintaxis
<Result> = <Scheduler control>.DeleteResource(<Resource>)
<Result>: booleano
  • True if a resource was deleted,
  • False otherwise.
<Scheduler control>: Nombre del control
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>: Cadena de caracteres
Name of resource to delete.
Note If resources in the Scheduler control field have been created with function <Scheduler>.AddResource using function gStoredValue, this parameter must match the value specified in function gStoredValue for this resource.
Componente: wd300mdl.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local