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
Allows you to indicate the specific working hours per day and per resource in a Scheduler control. This time period can be specified:
  • for the morning.
  • for the afternoon.
The time periods can be defined per resource and per day of the week.
Example
// Doctor Moore works from 9:00 to 14:00
SchedulerWorkingHourResource(SCH_MySchedule, "Moore", "0900", "1400")
// Doctor Brown works from 9:00 to 12:00 and from 13:40 to 19:15
SchedulerWorkingHourResource(SCH_MySchedule, "Brown", "0900", "1200", "1330", "1915")
// Doctor Brown works from 9:00 to 12:00 on Wednesdays
SchedulerWorkingHourResource(SCH_MySchedule, "Brown", "0900", "1200", "", "", 3)
Syntax
SchedulerWorkingHourResource(<Scheduler Control> , <Resource Name> , <Morning Start Time> , <Morning End Time> [, <Afternoon Start Time> [, <Afternoon End Time> [, <Day of Week>]]])
<Scheduler Control>: Control name
Name of Scheduler control to use.
<Resource Name>: Character string (with or without quotes)
Name of resource to use.
<Morning Start Time>: Time or character string
Start time of morning (in "HHMM" format).
<Morning End Time>: Time or character string
End time of morning (in "HHMM" format).
<Afternoon Start Time>: Time or optional character string
Start time of afternoon (in "HHMM" format)
<Afternoon End Time>: Time or optional character string
End time of afternoon (in "HHMM" format).
<Day of Week>: Optional integer
Indicates the number of the day affected by the specified schedules:
  • 1 for Monday,
  • 2 for Tuesday,
  • 3 for Wednesday,
  • 4 for Thursday,
  • 5 for Friday,
  • 6 for Saturday,
  • 7 for Sunday.
If this parameter is not specified or if it is set to 0, the definition of working hours is applied to all the days of the week.
Remarks
Components
WINDEVReports and Queries wd230mdl.dll
Android wd230android.jar
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment