Click or drag to resize

IInterestsRemove Method

Remove an item by index

Remove a specific member from the collection. The remove is now forwarded to the model for database action.

Note you still have to say SaveModel at some point to make the changes permanent.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void Remove(
	int Index
)

Parameters

Index
Type: SystemInt32
<p>The index of the interest to be removed from the collection </p> <p>Note - the id here is a virtual id, not the persint.persint<em>id or contint.contint</em>id.</p>
Examples

Remove

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

VB
Dim objSO
Dim contact
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    objSO.CurrentContact.Interests.Remove (1)
    MsgBox "The first active company interest of the current contact is deleted�
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also