Click or drag to resize

IDocumentsExists 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

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 myApnt = objDB.GetAppointment(5)
        Set myDocs = myApnt.ActivityLinks.Documents

        If myDocs.Exists(2) Then
            MsgBox "There is a document with id=2 linked to this appointment"
        End If


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

See Also