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
SyntaxFunction Exists (
Id As Integer
) As Boolean
Dim instance As IProjectMembers
Dim Id As Integer
Dim returnValue As Boolean
returnValue = instance.Exists(Id)
bool Exists(
[InAttribute] int Id
)
Parameters
- Id
- Type: SystemInt32
Person_id. Index into the collection
Return Value
Type:
BooleanBoolean – True if such a project member exists.
Implements
IMapCollectionExists(Int32)
ExamplesExists
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
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