Click or drag to resize

IRecurrenceEndDate Property

EndDate - the end date for the recurring rule. (The start date for the last appointment if it lasts more than a day.)

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
DateTime EndDate { get; set; }

Property Value

Type: DateTime
Date - The date of the last appontment
Examples

EndDate

VB
Dim db As New Database
If db.Login("<username>", "<password>") Then
    Dim appnt As SOAppointment
    appnt = db.GetAppointment(414)

    appnt.Recurrence.Pattern = EnRecurrencePattern.enPatternDaily
    appnt.Recurrence.SubPattern = EnRecurrenceSubPattern.enSubPatternDaily_EveryDay
    appnt.Recurrence.StartDate = appnt.DoBy
    appnt.Recurrence.EndDate = appnt.DoBy.AddDays(5)
    appnt.UpdateMode = EnRecurrenceUpdateMode.enThisAndForward
    appnt.Recurrence.ComputeDates()
    appnt.Save()
Else
    MsgBox("failed to log in")
End If

See Also