Click or drag to resize

ISalePerson Property

Person the sale is linked to A sale may also be connected to a person - this must be a contact person registered on the current contact. This does not mean 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

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.CurrentSale.Person.Identity      
    if result = 0 then
        msgbox "The current sale does not have a contact person!", vbInformation + vbOkOnly, "SuperCOM"
    else
        msgbox "Current sale  is with: " & objSO.CurrentSale.Person.FirstName & " " &         objSO.CurrentSale.Person.LastName, vbInformation + vbOKOnly, "SuperCOM"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also