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
SyntaxFunction Exists (
Id As Integer
) As Boolean
Dim instance As ICriterionValues
Dim Id As Integer
Dim returnValue As Boolean
returnValue = instance.Exists(Id)
bool Exists(
[InAttribute] int Id
)
Parameters
- Id
- Type: SystemInt32
Return Value
Type:
BooleanImplements
IMapCollectionExists(Int32)
ExamplesExists
Dim objDB
Dim msg
Set objDB = CreateObject("superofficedb.database")
If Not (objDB is Nothing) Then
objDB.login "<userid>", "<password>"
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