Click or drag to resize

IProjectMembers Property

Get the project members for this project. Returns a collection of SOProjectmembers. The ProjectMembers collection store the information with personid as the key, this means you have to use the personid when accessing the item property

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOProjectMembers Members { get; }

Property Value

Type: SOProjectMembers
SOProjectMembers – a collection of SOProjectMembers object
Examples

Members

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

This will return the number of registered project members on the project.

VB
Dim objSO
Dim projmembs 
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    MsgBox "The current project has " & objSO.currentproject.members.count & " project members.", vbInformation + vbOkOnly, "SuperCOM"
    Set projmembs = objSO.CurrentProject.Members
    For Each projmember In projmembs
        msg = msg & projmembs.Item(projmember.PersonId).Person.FirstName & " " &projmembs.Item(projmember.PersonId).Person.LastName & vbCrLf
    Next
    MsgBox "The current projects projectmembers names are:" & vbCrLf & msg, vbInformation + vbOnly, "SuperCOM"
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also