Click or drag to resize

ICriterionValuesExists Method

Returns true if the given item exists in the collection A criterion is a field, an operator and one or more values for comparison. A value (a number, date, list item) used by a criterion when searching. Returns true if there is a member in the collection at the given index.

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

Return Value

Type: Boolean

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 myContact = objDB.GetContact(2)
    Set myStatusMonitorValues = myContact.StatusMonitors

    If myStatusMonitorValues.Exists(2) Then
      MsgBox "A Status monitor with id 2 exists on " & myContact.Name
    End If

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

See Also