From version 17
, this function is kept for backward compatibility. This function is replaced with OrganizerMode
Returns the time range displayed by an Organizer control: day, week, month, ...
is used to modify the time range displayed by the Organizer control.
// Toggles between daily display and monthly display
IF OrganizerZoom(ORG_MyOrganizer) = orgzDay THEN
<Result> = OrganizerZoom(<Organizer control>)
<Result>: Integer constant
Time range displayed by the Organizer control:
|orgzDay||The organizer displays one day.|
|orgzMonth||The organizer displays a full month.|
|orgzWeek||The organizer displays a full week (or a partial week if a number of days was specified in OrganizerChangeZoom).|
|orgzWeekOn5||The organizer displays a week on 5 days (without the weekend).|
<Organizer control>: Control name
Name of the Organizer control to be used. This control can correspond to:
- an Organizer control in a window or in a page,
- an Organizer control in a report.
The following code lines are equivalent:
OrganizerZoom(ORG_Organizer, orgzWeek, 5)
In both cases, OrganizerZoom returns the orgzWeekOn5 constant.
Training (WINDEV): WD Handling the Organizer control
Complete examples (WINDEV): WD Organizer