Click or drag to resize

IDocumentPerson Property

Person this document refers to. The same person as returned as a string in the Attention property, but here it’s returned as a SOPerson object. This must be a contact person registered for the current contact, but this does not mean that a contact person is required in order to write a document

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

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.CurrentDocument.person.Identity          
    if result = 0 then
        msgbox "The current document does not have a contact person!", vbInformation + vbOkOnly, "SuperCOM"
    else
        msgbox "Current document is written to person: " & 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