Left and Right Halves of Month Minicalendar Modifiers

Navigation:  Tokens > MiniCalendar Tokens > MiniCalendar Modifiers >

Left and Right Halves of Month Minicalendar Modifiers

Previous pageReturn to chapter overviewNext page

The Left and Right Halves of Month minicalendar tokens modifiers, :L and :R, allow you to handle cases when a single-line minicalendar is split across 2 pages, with the number of days (and hence tabs) differing depending on the month being displayed.

 

For example, you may want to split the number of days in the month over the 2 pages, according to the following table:

 

Days in Month

Dates on Left Page

Dates on Right Page

28

1-14

15-28

29

1-15

16-29

30

1-15

16-30

31

1-16

17-31

 

There is no problem in specifying the above split in the Special Tabs dialog of the Minicalendar Options, as shown in the example below for the right half of 28-day months.

 

 

However, the problem is that the minicalendar token on the right page needs to use a starting day offset, such as :015 telling Q++ that the right half of the minicalendar should start on the 15th of the month. Unfortunately, as can be seen in the table above, we need different starting day offsets depending on the number of days in the month, since 28 days months start on the 15th on the right page, while 29 and 30 day months start on the 16th, and 31 day month start on the 17th.

 

This is when the left and right halves of month minicalendar modifiers become useful. Instead of specifying a fixed value starting day offset, such as :015, you use :R to tell Q++ that the current minicalendar is the second half of a split one-line minicalendar. Then Q++ will automatically use the appropriate offset for the right half of the month, based on the number of days in the month, minus the number of days displayed already on the left page.

 

See also: Use Date of Markers for Embedded Tokens.


Topic 177520 updated on 29-Dec-2005.
Topic URL: http://www.qppstudio.net/webhelp/index.html?leftandrighthalvesofmonth.htm