Click or drag to resize

IProjectMembersExists Method

Returns true if the given item exists in the collection We changed the index to use Person_id, this way you may check if a specific person is a project member

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
Person_id. Index into the collection

Return Value

Type: Boolean
Boolean – True if such a project 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
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    if objSO.CurrentProject.Members.Exists(1) then
        MsgBox "The current project has registered a project member with person_id=1"
    else
        MsgBox "The current project has no members registered"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also