ISAppointment.RecurrenceDateStart

Description

The date and time the recurring appointment is to start.

Syntax

object.RecurrenceDateStart

Part Attribute Type Description
object Required
The object always implements the ISAppointment interface
Restriction: This property is readonly.

Return Value

DateTime

Example

Display the date and time the recurring appointment is to start.

Dim aAppointments
Dim aApp
Dim aAppTemplate

Set aPatient = Profile.SelectPatient
set aProvider = Profile.LoadProvider("MM")
set aFilter = Profile.CreateAppointmentFilter

aFilter.ProviderID = aProvider.Id
aFilter.PatientId = aPatient.Id
aFilter.DateFrom = #01/01/2018#
aFilter.DateTo = #01/01/2019#
aFilter.IncludeRecurrent = 1

set aAppointments = Profile.LoadAppointments(aFilter)

if aAppointments.Count > 0 then
       
  for i = 0 to aAppointments.Count - 1
    set aApp = aAppointments.Item(i)
    if aApp.IsRecurrenceOccurence then
      set aAppTemplate = aApp.GetRecurrenceTemplateForOccurence
      Profile.MsgBox("Recurrence For First Occurence Appointment:" &_
         " DateStart = " & aAppTemplate.RecurrenceDateStart)
      exit for   
    end if
  next      

else
  Profile.MsgBox("aAppointments.Count = 0")
end if

  
Note:

In Profile Client v8 on User Interface Recurrence Date Start can be found in Appointment Window > Recurrence > Appointment time.

Version information

Added in v7.8.0