VCalendar Support
The vCalendar specifications are meant to allow the transfer of calendaring and scheduling information between different applications. The dbiAppointmentItem supports a subset of vCalendar event properties. A typical vCalendar event may look like the following...
BEGIN:VCALENDAR
VERSION:2.0
UID:JFHK339
BEGIN:VEVENT
DTSTART:19980402T103000
DTEND:19980402T113000
DESCRIPTION:Meeting in the board room
END:VEVENT
END:VCALENDAR
Creating an Appointment from a vCalendar String
One of the constructors in the dbiAppointmentItem class accepts a singles string. It is assumed that this string conforms to the vCalendar specifications. A new Dbi appointment item object can be created from a vCalendar string by using the following code where m_strVCal represents a vCalendar string.
Dim objAppoint As New Dbi.PIM.dbiAppointmentItem( m_strVCal )
The developer can also set the VCalendar property of the dbiAppointmentItem class to a vCalendar string.
Dim objAppoint As New Dbi.PIM.dbiAppointmentItem
objAppoint.VCalendar = m_strVCal
Note : The developer can read the VCalendar format of the appointment through this property as well.
m_strVCal = objAppoint.VCalendar
The following vCalendar properties are supported in the dbiAppointmentItem class.
vCalendar Property dbiAppointmentItem Property
DTSTART Start
DTEND End
UID EntryID
DESCRIPTION Text
LOCATION Location
SUMMARY Body
Note : While the control does support the DTSTART and DTEND properties, there is no support for time zones. The control assumes that the times sent to it have already been converted for the control.