ComponentOne True DBInput Pro 8.0
YearType Property (TDBCalendar)

The YearType property determines whether the calendar should be displayed in fiscal year form or not. When the YearType property is set to 1- Fiscal Year, based on the setting of the FirstMonth property, the fiscal year display will take effect.

Syntax

TDBCalendar.YearType = value

Read/Write at run time and design time.

Values

Design Time

Run Time

0 - Normal Year (Default)

dbiNormalYear

1 - Fiscal Year

dbiFiscalYear

Remarks

The following shows how the calendar will be drawn in both modes:

Calendar.FirstMonth = 4

Calendar.Value = CDate("1998/3/1")

When the FirstMonth property is set to 1 and YearType property is set to 1- Fiscal Year, the calendar will behave the same as when the YearType property is set to 0 - Normal Display.

When the YearType property is set to 1-Fiscal Year, year 99 will be displayed on the title bar for the previous fiscal year when scrolling beyond year 100. Also M. 00 will be displayed when setting the FirstMonth property to 10 - October, 11- November or 12 - December with the TitleFormat set to an Era format.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback