Click or drag to resize

IEmailsExists Method

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
Syntax
bool Exists(
	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: Boolean
Boolean - True if such an emails exists

Implements

IMapCollectionExists(Int32)
Examples

Exists

VB
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