DoCreateRPattern Event
Description
Occurs when a new recurrence pattern is created in the data source.
Syntax
Public Event DoCreateRPattern( _
ByVal pPattern As CalendarRecurrencePattern, _
ByRef NewPatternID As Long, _
ByRef bResult As Boolean _
)
Parameters
-
pPattern [out]
ACalendarRecurrencePatternobject which describes all data fields of a newly createdCalendarRecurrencePattern. -
NewPatternID [in]
Set to the ID of the newly createdCalendarRecurrencePattern. -
bResult [in]
Set to True if the recurrence pattern was created successfully, False if any error occurred during the process.
Remarks
Occurs when the CreateRecurrencePattern method is used. You must manually create the recurrence pattern using pPattern and then set NewPatternID and bResult after creating the recurrence pattern. The PatternAdded event will be called immediately after DoCreateRPattern.
This event occurs only when a custom data provider is used, allowing the developer to handle and implement a custom method.
Notes
-
The Custom data providers include SQLServer, MySql, and Custom. Custom data providers operate in an "unbound" mode. All data must be provided and retrieved to/from the calendar by the developer.
-
All of the "DoXXXX" (i.e.
DoCreateEvent) events will be fired when using a custom data provider; the developer must implement their own functionality for each event. For example, when an event is created using theCreateEventmethod, theDoCreateEventis fired. The developer can then add special code in theDoCreateEventto add the event to a database or some other custom data source. -
For all custom data providers, the
ConnectionStringmust contain "Provider=custom".
See Also
- CalendarControl Control
- CreateRecurrencePattern Method
- PatternAdded Event
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.