ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Various properties
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
The Resource property is used to:
  • find out the resources visible in a Scheduler control.
  • get the resource of the Scheduler control that corresponds to the specified index.
Example
SchedulerAddResource(SCH_Schedule1, "Florence" + gStoredValue("FL"))
SchedulerAddResource(SCH_Schedule1, "Manuelle" + gStoredValue("MA"))
 
Trace(SCH_Schedule1.Resource[1].Title) // Returns "Florence"
SchedulerAddResource(SCH_Schedule1, "Green room")
SchedulerAddResource(SCH_Schedule1, "Red room")
SchedulerAddResource(SCH_Schedule1, "Blue room")
 
FOR EACH RoomName OF SCH_Schedule1.Resource
Trace("Name: " + RoomName.Title)
END
Syntax

Finding out the Nth resource of a Scheduler control Hide the details

<Result> = <Scheduler control>[<Index>].Resource
<Result>:
Name of the requested resource.
<Scheduler control>: Control name
Name of the Scheduler control used.
<Index>: Integer
Index of the requested resource.

Finding out the resources visible in a Scheduler control Hide the details

<Result> = <Scheduler control>.Resource
<Result>: Array
Name of the array containing the visible resource of the Scheduler control. The only property that can be used on an element of this array is Title.
<Scheduler control>: Control name
Name of the Scheduler control used.
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/08/2023

Send a report | Local help