IDatabaseGetAppointment Method |
Get an Appointment object by id. Returns an error if the appointment is hidden by sentry rules.
Calling this function and passing 0 as appointmentID will create a new appointment object.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxSOAppointment GetAppointment(
int AppointmentId
)
Function GetAppointment (
AppointmentId As Integer
) As SOAppointment
Dim instance As IDatabase
Dim AppointmentId As Integer
Dim returnValue As SOAppointment
returnValue = instance.GetAppointment(AppointmentId)
SOAppointment^ GetAppointment(
[InAttribute] int AppointmentId
)
Parameters
- AppointmentId
- Type: SystemInt32
the numeric appointment identifier
Return Value
Type:
SOAppointmentSOAppointment – the specified appointment record
ExamplesRetrieve the appointment with id = 1.
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
dim objso
dim objappoint
set objso = CreateObject("superofficedb.database")
If not (objSO is nothing) Then
objso.login "<userid>", "<password>"
set objappoint = objso.getappointment (227)
msgbox "the full name of the associate that owns this appointment: " & objappoint.associate.fullname
else
msgbox "unable to connect to database"
end if
set objso = nothing
See Also