Click or drag to resize

ISelectionMembersExists 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
Index into the collection. The first Selection member has index 1. Use the Count() method to get the total number of Selection Members in the collection

Return Value

Type: Boolean
Boolean - True if such a selection member exists.

Implements

IMapCollectionExists(Int32)
Examples

Exists

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO
Dim result
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    if objSO.CurrentSelection.SelectionMembers.Exists (1) then
        MsgBox "The current selection has registered one or more Selection members�
    else
        MsgBox �The current selection has no URL�s registered�
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also