ISelectionAddMember Method |
AddMember
Adds a new member to the selection.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntaxvoid AddMember(
int ContactId,
int PersonId
)
Sub AddMember (
ContactId As Integer,
PersonId As Integer
)
Dim instance As ISelection
Dim ContactId As Integer
Dim PersonId As Integer
instance.AddMember(ContactId, PersonId)
void AddMember(
[InAttribute] int ContactId,
[InAttribute] int PersonId
)
Parameters
- ContactId
- Type: SystemInt32
Long, the database internal identity for the company - PersonId
- Type: SystemInt32
Long, the database internal identity for the contact person
ExamplesAddMember
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO
Dim result
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
objSO.CurrentSelection.AddMember 1,1
MsgBox "A new selection member is added to the current selection ", vbInformation + vbOKOnly, "SuperCOM"
else
MsgBox "Unable to connect to database"
end if
Set objSO = Nothing
See Also