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 / Organizer functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Displays an Organizer control from a specified date or returns the date of the first day (or the date of the last day) displayed in an Organizer control.
Example
// Position the Organizer control on today's date
OrganizerPosition(ORG_Organizer1, Today())
// Set Organizer control to December 20, 2022
OrganizerPosition(ORG_Organizer1, "20221220")
// Find out the first date displayed in the Organizer control
OrganizerDate is Date
OrganizerDate = OrganizerPosition(ORG_MyOrganizer)
Syntax

Position the Organizer control on a specified date Hide the details

OrganizerPosition(<Organizer control> , <Start date>)
<Organizer control>: Control name
Name of the Organizer control to be used. This field may correspond to:
  • WINDEVAndroidiPhone/iPadMac Catalyst an Organizer control in a window.
  • an Organizer control in a report.
  • WEBDEV - Server codePHP an Organizer control in a page.
<Start date>: Character string or Date variable
Start date for the display.

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

<Result> = OrganizerPosition(<Organizer control> , <Sought date>)
<Result>: Character string or Date variable
Date displayed by the Organizer control.
<Organizer control>: Control name
Name of the Organizer control to be used. This field may correspond to:
  • WINDEVAndroidiPhone/iPadMac Catalyst an Organizer control in a window.
  • an Organizer control in a report.
  • WEBDEV - Server codePHP an Organizer control in a page.
<Sought date>: Optional Integer constant
Type of sought date:
orgCurrentMonthFirst day of the month displayed in the Organizer control.
orgDateTimeFirstVisibleFirst date and time displayed in the Organizer control (depending on the position of the scrollbar).
AndroidPHP Not available.
orgEndDateLast date displayed in the Organizer control.
orgStartDate
(Default value)
First date displayed in the Organizer control.

Note If the Organizer control is in "by day" display mode, the constants agDateStart and agDateEnd constants are equivalent.
Component: wd300mdl.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/14/2024

Send a report | Local help