ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Scheduler functions
  • Positioning in the Scheduler control
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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
// Position the Scheduler control on today's date
SchedulerPositionDateTime(SCH_Schedule, Today())

// Position the Scheduler control on December 20, 2012
SchedulerPositionDateTime(SCH_Schedule, "20181220")
// Returns the first date and time displayed in the Scheduler control
Trace(SchedulerPositionDateTime(SCH_Schedule, orgDateTimeFirstVisible))
// Returns, for example: 20220309175800000
Syntax

Positioning the schedule on a specified date Hide the details

SchedulerPositionDateTime(<Scheduler control> , <Start date>)
<Scheduler control>: Control name
Name of the Scheduler control to be used. This control can be:
  • the Scheduler control of a window,
  • 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> = SchedulerPositionDateTime(<Scheduler control> [, <Sought date>])
<Result>: Character string, or Date or DateTime variable
Date (or Date and Time) displayed by the Scheduler control.
<Scheduler control>: Control name
Name of the Scheduler control to be used. This control can be:
  • the Scheduler control of a window,
  • the Scheduler control of a report.
<Sought date>: Optional Integer constant
Type of sought date:
orgDateTimeFirstVisibleFirst date and time displayed in the Scheduler control (depending on the position of the scrollbar).
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 SchedulerPositionDateTime is used to display a date, the Scheduler control keeps your display preferences.
For example, if the Scheduler control displayed is a weekly schedule starting from Monday, SchedulerPositionDateTime used on a Friday displays the schedule from Monday to Sunday for the week that includes the specified Friday.
Component: wd300mdl.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help