Click or drag to resize

IRecurrenceMonth Property

Month - The interval of a monthly subpattern (e.g., every 2 months).

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

Property Value

Type: Int16
Integer - Interval of monthly subpattern
Examples

Month

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

    appnt.SetDefaults()
    appnt.Contact = db.GetContact(3)
    appnt.Person = db.GetPerson(7)
    appnt.Description = "Discussing what to do the next week"
    appnt.Task = db.GetListItem(SOTableId.enTableTask, 2)
    appnt.DoBy = New Date(2005, 12, 1, 14, 0, 0, 0)
    appnt.Duration = 60
    appnt.RecurrenceRuleId = 0

    appnt.Location = "TestLocation"
    appnt.AllDayEvent = False
    appnt.FreeBusy = EnFreeBusy.enFreeBusyBusy

    appnt.Recurrence.Pattern = EnRecurrencePattern.enPatternMonthly
    appnt.Recurrence.SubPattern = EnRecurrenceSubPattern.enSubPatternMonthly_Date
    appnt.Recurrence.Day = 1
    appnt.Recurrence.Month = 2
    appnt.Recurrence.StartDate = New Date(2005, 12, 1)
    appnt.Recurrence.EndDate = New Date(2006, 2, 6)
    appnt.UpdateMode = EnRecurrenceUpdateMode.enThisAndForward
    appnt.Recurrence.ComputeDates()   

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

See Also