Click or drag to resize

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
Syntax
SOAppointment GetAppointment(
	int AppointmentId
)

Parameters

AppointmentId
Type: SystemInt32
the numeric appointment identifier

Return Value

Type: SOAppointment
SOAppointment – the specified appointment record
Examples

Retrieve 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.

VB
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