ISAppointment.Comment

Description

Some comment for the appointment.

Syntax

object.Comment

Part Attribute Type Description
object Required
The object always implements the ISAppointment interface

Return Value

string

Example

Display the comment of the appointment.

Dim aPatient
Dim aProvider
Dim aFilter 
Dim aAppointments, aAppointment
Dim aMessage
Dim i

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/2020#

set aAppointments = Profile.LoadAppointments(aFilter)

aMessage = "There are " & aAppointments.Count & " appointments" 
for i = 0 to aAppointments.Count - 1
  set aAppointment = aAppointments.Item(i)
  aMessage = aMessage &  vbNewLine & (i + 1) & ") " &_
    "Book Time: " & aAppointment.BookTime & vbNewLine &_
    "    Comment: " &  aAppointment.Comment & vbNewLine
next 'i 

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Appointment Comment can be found in Appointment Window > Comment field.

Version information

Added in v7.8.0