Click or drag to resize

IAppointmentPerson Property

The Person for this appointment Must be a contact person registered on the current company. This does not mean however that a person is required

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

Property Value

Type: SOPerson
SOPerson – a reference to the SOPerson object
Examples

Get appoinment person

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO
Dim result 
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    result = objSO.CurrentAppointment.person.Identity

    if result = 0 then
        msgbox "The current appointment does not have a contact person!", vbInformation + vbOkOnly, "SuperCOM"
    else
        msgbox "Current appointment is with: " & objSO.CurrentAppointment.Person.FirstName & " " & objSO.CurrentAppointment.Person.LastName, vbInformation + vbOKOnly, "SuperCOM"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also