ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Scheduler functions
  • Positioning in the Scheduler control
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
Warning
From version 17, this function is kept for compatibility in WINDEV. In WINDEV, we recommend that you use SchedulerPositionDateTime.
Displays a Scheduler control from a specified date or returns the date of the first day (or last day) displayed in a Scheduler control.
Example
// Positions the schedule on today's date
SchedulerPosition(SCH_Schedule, Today())
 
// Positions the schedule on December 20, 2016
SchedulerPosition(SCH_Schedule, "20161220")
Syntax

Positioning the schedule on a specified date Hide the details

SchedulerPosition(<Scheduler control> , <Start date>)
<Scheduler control>: Control name
Name of Scheduler control to use. This control can correspond to:
  • the Scheduler control of a window,
  • the Scheduler control of a page,
  • the Scheduler control of a report.
<Start date>: Character string or Date variable
Start date for the display.

Finding out the first date or the last date displayed by the Scheduler control Hide the details

<Result> = SchedulerPosition(<Scheduler control> [, <Sought date>])
<Result>: Character string
Date displayed by the Scheduler control.
<Scheduler control>: Control name
Name of Scheduler control to use. This control can correspond to:
  • the Scheduler control of a window,
  • the Scheduler control of a page,
  • the Scheduler control of a report.
<Sought date>: Optional Integer constant
Type of sought date:
schCurrentMonthFirst day of the month displayed in the Scheduler control.
schEndDateLast date displayed in the Scheduler control.
schStartDate
(Default value)
First date displayed in the Scheduler control.
Remarks

Positioning in the Scheduler control

When SchedulerPosition is used to display a date, the schedule keeps your display preferences.
For example, if the schedule displayed is weekly schedule starting from Monday, SchedulerPosition used on a Friday displays the schedule from Monday to Sunday for the week that includes the specified Friday.
Component: wd290mdl.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help