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
SchedulerAddResource (Function)
In French: PlanningAjouteRessource
Adds a new resource into a Scheduler control.
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 a resource (a meeting room) into the Scheduler control
// Meeting is the data file that describes the available meeting rooms
SchedulerAddResource(SCH_RoomOccupancy, Meeting.Name + gLink(Meeting.IDMeeting))
Syntax
<Result> = SchedulerAddResource(<Scheduler Control> , <Resource> [, <Image>])
<Result>: Integer
  • Subscript of added resource,
  • -1 if an error occurred. ErrorInfo is used to identify the error.
<Scheduler Control>: Control name
Name of Scheduler control into which the resource will be added. 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 the added resource. An invisible value can be added by gLink.
<Image>: Optional character string (with quotes)
Path and name of the background image for the title of the resource. This image is displayed below the header of the row or column containing the name of the resource.
WEBDEV - Server codeLinuxPHPAjax This parameter is not available.
Related Examples:
WD Schedule Complete examples (WINDEV): WD Schedule
[ + ] This example presents the management of a graphic schedule.

The following topics are presented in this example:
1/ the scheduler control
2/ the Google Calendar functions
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