PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Positioning in the Scheduler control
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
Displays a Scheduler control from a specified date or returns the date of the first day (or last day) displayed in a Scheduler control.
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.
Versions 22 and later
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites.
New in version 22
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites.
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites.
Example
// Positions the schedule on today's date
SchedulerPositionDateTime(SCH_Schedule, Today())

// Positions the schedule on December 20, 2012
SchedulerPositionDateTime(SCH_Schedule, "20121220")
Syntax

Positioning the schedule on a specified date Hide the details

SchedulerPositionDateTime(<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 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 variable
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 report.
<Sought Date>: Optional Integer constant
Type of sought date:
schStartDate
(Default value)
First date displayed in the Scheduler control.
schEndDateLast date displayed in the Scheduler control.
schCurrentMonthFirst day of the month displayed in the Scheduler control.
Remarks

Positioning in the Scheduler control

When SchedulerPositionDateTime is used to display a date, the schedule keeps your display preferences.
For example, if the schedule displayed is 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mdl.dll
Linux wd230mdl.so
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment