Skip to content

OnSeedData - cMonthCalendarPrompt

Called during calendar prompt list activation to seed a default date or date range

Type: Event

Syntax

Procedure OnSeedData

Description

OnSeedData is called to set an initial date (pbMultiSelect=False) or date-range (pbMultiSelect=True).

Single Select Seeding

If a value exists in pdSeedValue, that value will be used, else the current date will be used. If peUpdateMode is umPromptValue, pdSeedValue is set automatically to the current date value of the invoking object. If peUpdateMode is umPromptCustom or umPromptNonInvoking, you must set this value yourself.

Date-Range Seeding

The date range is selected based on pdSeedValue and pdSeedValue2. If a value exists for both of these properties, those are used to select a range. If only one value exists (i.e., the other is 0), that one date value will be selected. If both values are 0, the current date is used. With date-range calendars you must set both pdSeedValue and pdSeedValue2 yourself. After the range has been selected a test will be made to make sure that the date range fits within the allowable range as determined by piMaxSelectedCount. If it does not a handled error will be raised and only the first date will be selected.

If you plan on augmenting this event, study the existing code.