Click or drag to resize

IAppointmentRecurrence Property

Get the recurrence object for this appointment. If this is not a recurring event the object gets default zero values.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SORecurrence Recurrence { get; }

Property Value

Type: SORecurrence
SoRecurrence - The recurrence rules
Examples

Recurrence

VB
Dim db, Dates, Appnt
Set db = CreateObject("SuperOfficeDB.Database")
enPatternDaily = 1
enSubPatternDaily_EveryDay = 2
enThisAndForward = 2

If db.Login("USERNAME", "PASSWORD") Then

    Set Appnt = db.GetAppointment(4)

    Appnt.Recurrence.Pattern = enPatternDaily
    Appnt.Recurrence.SubPattern = enSubPatternDaily_EveryDay
    Appnt.Recurrence.StartDate = appnt.DoBy
    Appnt.Recurrence.EndDate = DateAdd("d", 5, appnt.DoBy)
    Appnt.UpdateMode = enThisAndForward
    Set Dates = Appnt.Recurrence.ComputeDates
    If Not Dates.Empty Then
     For i = 0 To Dates.Count - 1
      msg = msg & Dates.Item(i) & ", "
      msg = msg & Dates.Exists(i) & vbCrLf
     Next
    MsgBox msg, vbInformation, "Appointments created on"
    End If

    Appnt.Save
Else
    MsgBox ("failed to log in")
End If

See Also