Click or drag to resize

IPersonsCount Method

Return the number of persons in the list.

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

Return Value

Type: Int32
Examples

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

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