Click or drag to resize

ISelectionIncludeFirstPerson Property

0 = Include first person, 1 = Include all persons, 2 = Include no persons A flag that tells the Selection to include the first person for each Company when adding members to the Selection. The Person that is added is the one with the highest rank (Rank = 1)

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool IncludeFirstPerson { get; set; }

Property Value

Type: Boolean
Examples

Incliude first person

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 mySelection = objDB.GetSelection(6) 'get selection with selection_id=6
    msg = msg & "Selection type: " & mySelection.Type & vbCrLf
    msg = msg & "Number of selection criterions: " & mySelection.Criteria.Count & vbCrLf
    msg = msg & "Group: " & mySelection.Group.Id & vbCrLf
    msg = msg & "Include first person: " & mySelection.IncludeFirstPerson & vbCrLf
    msg = msg & "Private to group: " & mySelection.PrivateToGroup.Text & vbCrLf

    MsgBox msg, vbInformation, "SuperCOM"

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

See Also