Returns true if the given item exists in the collection
Checks whether there exists 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 IEmails
Dim Id As Integer
Dim returnValue As Boolean
returnValue = instance.Exists(Id)
bool Exists(
[InAttribute] int Id
)
Parameters
- Id
- Type: SystemInt32
Index into the collection. The first email has index 1. Use the Count() method to get the total number of emails in the collection
Return Value
Type:
BooleanBoolean - True if such an emails exists
Implements
IMapCollectionExists(Int32)
ExamplesExists
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
if objSO.CurrentContact.Emails.Exists (1) then
MsgBox "The current contact has registered one or more Emails"
else
MsgBox "The current contact has no Emails registered"
end if
else
MsgBox "Unable to connect to database"
end if
Set objSO = Nothing
See Also