Click or drag to resize

IStatusMonitorsExists Method

Returns true if the given item exists in the collection

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

Parameters

Id
Type: SystemInt32
The id of the statusmonitor

Return Value

Type: Boolean
TRUE if the item with the given id exists in the collection, FALSE if it does not

Implements

IMapCollectionExists(Int32)
Examples

Exists

VB
Dim objDB
Dim msg

Set objDB = CreateObject("superofficedb.database")
If Not (objDB is Nothing) Then
    objDB.login "<userid>", "<password>" ' log in to the database

     Set myStatusMonitors = objDB.Admin.GetAllStatusMonitors(5, False) 'Get all statusmonitors for contacts.
        If myStatusMonitors.Exists(32) Then
            MsgBox "There's a status monitor with id = 32"
        End If

        MsgBox "There are " & myStatusMonitors.Count & " active statusmonitor for contact."

Else
    MsgBox "unable to connect to database"
End If
Set objso = Nothing

See Also