Click or drag to resize

IPersonsExists Method

Returns true if the person exists in the list.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool Exists(
	int i_PersonId
)

Parameters

i_PersonId
Type: SystemInt32

Return Value

Type: Boolean
Examples
VB
Set soDb = CreateObject("SuperOfficeDB.Database")

isOk = soDb.Login("user, "pass")
if isOk Then

    Set persons = soDb.GetContact(20).GetPersons()
    MsgBox "There are " & persons.Count & " registered on contact_id = 20"
    MsgBox "Person_id 20 is found here: " & persons.exists(20)
    For Each person In persons
        msg = msg & person.FullName & vbCrLf
    Next
    MsgBox msg, vbInformation + vbOKOnly, "SuperCOM"
else
   MsgBox "Login failed"
end if
See Also