Click or drag to resize

IPersonIsAssociate Property

Return true if the person represents an internal user Checks if the person object is an associate

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool IsAssociate { get; }

Property Value

Type: Boolean
Boolean – True if the person is an associate
Examples

IsAssociate

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

VB
Dim objSO
Dim objPerson
Set objSO = CreateObject("SuperOfficeDB.Database")
If not (objSO is nothing) Then
    objSO.Login "<USERID>", "<PASSWORD>"
    Set objPerson = objSO.GetPerson(2)       
    if objPerson.IsAssociate = true then
        MsgBox "Person with person_id=2 has the following firstname: " & objPerson.firstname
    else
        msgbox "There is no person in the database with person_id=2"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also