Click or drag to resize

ISelectionRemoveMember Method

RemoveMember

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void RemoveMember(
	int ContactId,
	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
Examples

RemoveMember

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

This example will add the contact person with personid=1 and contactid=1. This is, in almost all databases, a contact person from the SuperOffice subsidiary in your home country. It could be recommended to try the SOSelection.AddMember example first if your going to try this on your database.

VB
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    objSO.CurrentSelection.RemoveMember 1,1
    MsgBox "The selection member is removed from the current selection ", vbInformation + vbOKOnly, "SuperCOM"
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also